Creates a server that accepts TCP connections and forwards them to a WebSocket connection.
npm i -g tcp-to-websocket
This installs the utility in the global register that
can be called from the command line interface with tcpws.
tcpws -p port -w wsaddress [-n name] [--usestrings]
portis the local TCP port numberwsaddressis the address of the remove WebSocket connectionname(optional) the WebSocket sub-protocol nameusestrings(optional) send data as strings instead of bytes, as some WebSockect servers treat strings different
tcpws -p 6510 wss://bbs.sblendorio.eu:8080 -n bbs
Creates a local server that accepts TCP connections on the port 6510
and forwards them to wss://bbs.sblendorio.eu:8080. The name of the WebSocket
sub-protocol is bbs.
Written by Antonino Porcino - MIT License