Implements WAMP(v2) and WebSocket.