Stream json from stdin through a websocket.