MCPcopy
hub / github.com/coder/websocket / Close

Method Close

netconn.go:117–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115var _ net.Conn = &netConn{}
116
117func (nc *netConn) Close() error {
118 nc.writeTimer.Stop()
119 nc.writeCancel()
120 nc.readTimer.Stop()
121 nc.readCancel()
122 return nc.c.Close(StatusNormalClosure, "")
123}
124
125func (nc *netConn) Write(p []byte) (int, error) {
126 nc.writeMu.forceLock()

Callers 1

readMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected