MCPcopy Create free account
hub / github.com/DNAProject/DNA / WsServer

Struct WsServer

http/websocket/websocket/server.go:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 SubscribeBlockTxHashs bool `json:"SubscribeBlockTxHashs"`
64}
65type WsServer struct {
66 sync.RWMutex
67 Upgrader websocket.Upgrader
68 listener net.Listener
69 server *http.Server
70 SessionList *session.SessionList // websocket sesseionlist
71 ActionMap map[string]Handler //handler functions
72 TxHashMap map[string]string //key: txHash value:sessionid
73 SubscribeMap map[string]subscribe //key: sessionId value:subscribeInfo
74}
75
76//init websocket server
77func InitWsServer() *WsServer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected