good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 97f63d09 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

Improve docs formatting on NetConn

parent ce67a444
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,16 @@ import (
)
// NetConn converts a *websocket.Conn into a net.Conn.
//
// Every Write to the net.Conn will correspond to a binary message
// write on *webscoket.Conn.
//
// Close will close the *websocket.Conn with StatusNormalClosure.
//
// When a deadline is hit, the connection will be closed. This is
// different from most net.Conn implementations where only the
// reading/writing goroutines are interrupted but the connection is kept alive.
//
// The Addr methods will return a mock net.Addr.
func NetConn(c *Conn) net.Conn {
nc := &netConn{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment