websocket server prototype