MCPcopy Index your code
hub / github.com/coder/websocket / Subprotocol

Method Subprotocol

conn.go:147–149  ·  view source on GitHub ↗

Subprotocol returns the negotiated subprotocol. An empty string means the default protocol.

()

Source from the content-addressed store, hash-verified

145// Subprotocol returns the negotiated subprotocol.
146// An empty string means the default protocol.
147func (c *Conn) Subprotocol() string {
148 return c.subprotocol
149}
150
151func (c *Conn) close() error {
152 c.closeMu.Lock()

Callers 1

TestWasmFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestWasmFunction · 0.36