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
import attachProxy from 'emailjs-tcp-proxy'
import express from 'express'
import { Server } from 'http'
const server = Server(express())
server.listen(12345, () => {
attachProxy(server)
})
git clone [email protected]:emailjs/emailjs-tcp-proxy.git
cd emailjs-tcp-proxy
PROXY_PORT=1234 npm start