SetWriteDeadline sets the write deadline on the underlying network connection. After a write has timed out, the websocket state is corrupt and all future writes will return an error. A zero value for t means writes will not time out.
(t time.Time)
| 785 | // all future writes will return an error. A zero value for t means writes will |
| 786 | // not time out. |
| 787 | func (c *Conn) SetWriteDeadline(t time.Time) error { |
| 788 | c.writeDeadline = t |
| 789 | return nil |
| 790 | } |
| 791 | |
| 792 | // Read methods |
| 793 |
no outgoing calls
no test coverage detected