View definition

(*rpcServer).WebsocketHandler

Defined in github.com/btcsuite/btcd/rpcwebsocket.go

Description

WebsocketHandler handles a new websocket client by creating a new wsClient, starting it, and blocking until the connection closes. Since it blocks, it must be run in a separate goroutine. It should be invoked from the websocket server handler which runs each new connection in a new goroutine thereby satisfying the requirement.

WebsocketHandler is referenced in 1 repository

github.com/btcsuite/btcd