A TCP -> WS -> TCP proxy
Find a file
2024-01-19 10:47:07 +00:00
config make config example have right extension 2024-01-19 09:19:31 +00:00
src Move client and server to their own files 2024-01-19 10:20:23 +00:00
tooling It works 2024-01-18 14:48:09 +00:00
.gitignore move configs to *.example.json 2024-01-18 19:48:40 +00:00
index.ts Move client and server to their own files 2024-01-19 10:20:23 +00:00
LICENSE It works 2024-01-18 14:48:09 +00:00
package-lock.json 1.0.1 2024-01-19 10:26:36 +00:00
package.json 1.0.1 2024-01-19 10:26:36 +00:00
README.md Update README.md 2024-01-19 10:47:07 +00:00
tsconfig.json It works 2024-01-18 14:48:09 +00:00

tcp-ws-proxy

A TCP -> WS -> TCP proxy


This was originally made for accessing MariaDB databases over a websocket on a site proxied by Cloudflare. It seems to work pretty well in my testing so i've made the repo for it public.

Known issues

  • When using it over Cloudflare it is possible to create too many websocket connections. See #2.
  • The console spam can get pretty bad on the client with multiple connections. This should be resolved once all local client connections share the same pooled websockets.
  • There is no handling for if the websocket drops but the sockets on both sides do not. It will not re-establish a connection it will just terminate the TCP connections on both sides. This should be improved.