Pipes socket data to a websocket