Added WebSocket communication.