Skip to content

Tunnels tcp connections to socketio without TLS termination

License

Notifications You must be signed in to change notification settings

emailjs/emailjs-tcp-proxy

Repository files navigation

emailjs-tcp-proxy

DEPRECATION NOTICE

This project is not actively being maintained. If you're sending emails on a node.js-esque platform, please use Andris Reinman's nodemailer. It is actively supported, more widely used and maintained offers more possibilities for sending mails than this project.

Background: This project was created because there was no option of using SMTP in a browser environment. This use case has been eliminated since Chrome Apps reached end of life and Firefox OS was scrapped. If you're on an electron-based platform, please use the capabilities that come with a full fledged node.js backend.

If you still feel this project has merit and you would like to be a maintainer, please reach out to me.

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

License

Stars

Watchers

Forks

Packages

No packages published