Implement a basic WebSocket interface.