abandoned example with WebSocket implementation