ConnectorWebSocketServer
class ConnectorWebSocketServer(router: JsonRpcRouter, scope: CoroutineScope, port: Int = DEFAULT_PORT) : WebSocketServer
WebSocket server for the DApp Connector.
Listens on localhost:port for JSON-RPC 2.0 messages from dApps. Each incoming text message is routed through JsonRpcRouter, and the JSON-RPC response is sent back on the same connection.
Binds to 127.0.0.1 only — no remote connections accepted.
Parameters
router
Routes JSON-RPC messages to ConnectedAPIHandler methods
scope
Coroutine scope for launching suspend handler calls
port
TCP port to listen on (default: 9932, matches CLI's mn serve)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onWebsocketHandshakeReceivedAsClient(p0: WebSocket, p1: ClientHandshake, p2: ServerHandshake)
Link copied to clipboard
open override fun onWebsocketHandshakeReceivedAsServer(p0: WebSocket, p1: Draft, p2: ClientHandshake): ServerHandshakeBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard