This commit is contained in:
crusader 2018-03-23 00:09:56 +09:00
parent 86a48a1e2b
commit 2b1a321c81

View File

@ -44,6 +44,8 @@ type Socket interface {
// writing the message and closing the writer. // writing the message and closing the writer.
WriteMessage(messageType int, data []byte) error WriteMessage(messageType int, data []byte) error
WriteMessageUseWriter(messageType int, data []byte) error
// SetWriteDeadline sets the write deadline on the underlying network // SetWriteDeadline sets the write deadline on the underlying network
// connection. After a write has timed out, the websocket state is corrupt and // 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 // all future writes will return an error. A zero value for t means writes will