Websockify is a WebSocket to TCP proxy/bridge.
This allows a browser to connect to any application/server/service.
Implementations in Python, C, Node.js and Ruby.

It also includes a wrap program that uses a LD_PRELOAD library to
proxying from a source address to a target address.
