Server-side implementation of the MCP (Model Context Protocol) transport over WebSocket.
Callback for when the connection is closed for any reason.
Callback for when an error occurs.
Callback for when a message (request or response) is received over the connection.
Closes the connection.
Sends a JSON-RPC message (request or response).
Starts processing messages on the transport, including any connection steps that might need to be taken.