ws-tcp-relay
A relay between WebSocket clients and TCP servers. Data received from
WebSocket clients is simply forwarded to the specified TCP server, and
vice-versa. In other words, it's
websocketd, but for TCP connections
instead of STDIN
and STDOUT
.
Usage
Usage: ws-tcp-relay <tcpTargetAddress>
-p uint
The port to listen on (default 4223)
-port uint
The port to listen on (default 4223)
-tlscert string
TLS cert file path
-tlskey string
TLS key file path
WSS Support
To use secure WebSockets simply specify both the tlscert
and tlskey
flags.
Installation
go get -u github.com/isobit/ws-tcp-relay
Binaries are also available on the release page.