MCPcopy
hub / github.com/name5566/leaf / WSConn

Struct WSConn

network/ws_conn.go:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11type WebsocketConnSet map[*websocket.Conn]struct{}
12
13type WSConn struct {
14 sync.Mutex
15 conn *websocket.Conn
16 writeChan chan []byte
17 maxMsgLen uint32
18 closeFlag bool
19}
20
21func newWSConn(conn *websocket.Conn, pendingWriteNum int, maxMsgLen uint32) *WSConn {
22 wsConn := new(WSConn)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected