SetReadDeadline sets the read deadline on the underlying network connection. After a read has timed out, the websocket connection state is corrupt and all future reads will return an error. A zero value for t means reads will not time out.
(t time.Time)
| 1103 | // all future reads will return an error. A zero value for t means reads will |
| 1104 | // not time out. |
| 1105 | func (c *Conn) SetReadDeadline(t time.Time) error { |
| 1106 | return c.conn.SetReadDeadline(t) |
| 1107 | } |
| 1108 | |
| 1109 | // SetReadLimit sets the maximum size in bytes for a message read from the peer. If a |
| 1110 | // message exceeds the limit, the connection sends a close message to the peer |