MCPcopy
hub / github.com/gorilla/websocket / Subprotocol

Method Subprotocol

conn.go:338–340  ·  view source on GitHub ↗

Subprotocol returns the negotiated protocol for the connection.

()

Source from the content-addressed store, hash-verified

336
337// Subprotocol returns the negotiated protocol for the connection.
338func (c *Conn) Subprotocol() string {
339 return c.subprotocol
340}
341
342// Close closes the underlying network connection without sending or waiting
343// for a close message.

Callers 2

ServeHTTPMethod · 0.80
TestHandshakeFunction · 0.80

Calls

no outgoing calls

Tested by 2

ServeHTTPMethod · 0.64
TestHandshakeFunction · 0.64