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

Method NetConn

conn.go:1195–1197  ·  view source on GitHub ↗

NetConn returns the underlying connection that is wrapped by c. Note that writing to or reading from this connection directly will corrupt the WebSocket connection.

()

Source from the content-addressed store, hash-verified

1193// Note that writing to or reading from this connection directly will corrupt the
1194// WebSocket connection.
1195func (c *Conn) NetConn() net.Conn {
1196 return c.conn
1197}
1198
1199// UnderlyingConn returns the internal net.Conn. This can be used to further
1200// modifications to connection specific flags.

Callers 2

TestNetConnFunction · 0.80
TestBufioReuseFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestNetConnFunction · 0.64
TestBufioReuseFunction · 0.64