mirror of https://github.com/gorilla/websocket.git
Add SetDeadline docs
This commit is contained in:
parent
561b74d2fd
commit
6307a35aaf
2
conn.go
2
conn.go
|
@ -292,6 +292,8 @@ func newConn(conn net.Conn, isServer bool, readBufferSize, writeBufferSize int)
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetDeadline sets the read and write deadline on the underlying network connection
|
||||||
|
// It is equivalent to calling both SetReadDeadline and SetWriteDeadline.
|
||||||
func (c *Conn) SetDeadline(t time.Time) error {
|
func (c *Conn) SetDeadline(t time.Time) error {
|
||||||
c.writeDeadline = t
|
c.writeDeadline = t
|
||||||
return c.conn.SetDeadline(t)
|
return c.conn.SetDeadline(t)
|
||||||
|
|
Loading…
Reference in New Issue