Skip to content

About

Tunnels tcp connections to socketio without TLS termination

Resources

Stars

2 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

emailjs-tcp-proxy

Greenkeeper badge Build Status JavaScript Style Guide ES6+

Tunnels tcp connections to socketio without TLS termination. Browsers do not support raw TCP sockets, hence this library allows you to attach a proxy, which accepts any incoming socket.io connection and opens a corresponding tcp socket. To be used in conjunction with emailjs-tcp-socket

Usage as library to use in your own services

import attachProxy from 'emailjs-tcp-proxy'
import express from 'express'
import { Server } from 'http'

const server = Server(express())
server.listen(12345, () => {
  attachProxy(server)
})

Usage as standalone

git clone git@github.com:emailjs/emailjs-tcp-proxy.git
cd emailjs-tcp-proxy
PROXY_PORT=1234 npm start

About

Tunnels tcp connections to socketio without TLS termination

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages