We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce67a44 commit 97f63d0Copy full SHA for 97f63d0
netconn.go
@@ -11,12 +11,16 @@ import (
11
)
12
13
// NetConn converts a *websocket.Conn into a net.Conn.
14
+//
15
// Every Write to the net.Conn will correspond to a binary message
16
// write on *webscoket.Conn.
17
18
// Close will close the *websocket.Conn with StatusNormalClosure.
19
20
// When a deadline is hit, the connection will be closed. This is
21
// different from most net.Conn implementations where only the
22
// reading/writing goroutines are interrupted but the connection is kept alive.
23
24
// The Addr methods will return a mock net.Addr.
25
func NetConn(c *Conn) net.Conn {
26
nc := &netConn{
0 commit comments