Websocket peer and server