Sample WebSocket implementation