From f918560c4c3d6a271185320bb1d4a1e40f77297f Mon Sep 17 00:00:00 2001 From: Gary Burd Date: Tue, 10 Oct 2017 09:16:43 -0700 Subject: [PATCH] Improve NextWriter documentation --- conn.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conn.go b/conn.go index 92654a1..ae97f89 100644 --- a/conn.go +++ b/conn.go @@ -484,6 +484,9 @@ func (c *Conn) prepWrite(messageType int) error { // // There can be at most one open writer on a connection. NextWriter closes the // previous writer if the application has not already done so. +// +// All message types (TextMessage, BinaryMessage, CloseMessage, PingMessage and +// PongMessage) are supported. func (c *Conn) NextWriter(messageType int) (io.WriteCloser, error) { if err := c.prepWrite(messageType); err != nil { return nil, err