mirror of https://github.com/gorilla/websocket.git
add small docs for clarity argument
This commit is contained in:
parent
6f34763140
commit
e9582e5b04
1
conn.go
1
conn.go
|
@ -727,6 +727,7 @@ func (c *Conn) WritePreparedMessage(pm *PreparedMessage) error {
|
|||
|
||||
// WriteMessage is a helper method for getting a writer using NextWriter,
|
||||
// writing the message and closing the writer.
|
||||
// messageType is an int with value websocket.BinaryMessage or websocket.TextMessage.
|
||||
func (c *Conn) WriteMessage(messageType int, data []byte) error {
|
||||
|
||||
if c.isServer && (c.newCompressionWriter == nil || !c.enableWriteCompression) {
|
||||
|
|
Loading…
Reference in New Issue