Creates a bridge between TCP sockets and WebSockets using JSON data