add small docs for clarity argument

This commit is contained in:
faisal burhanudin 2017-09-14 13:38:23 +07:00
parent 6f34763140
commit e9582e5b04
1 changed files with 1 additions and 0 deletions

View File

@ -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) {