Skip to content

Commit f918560

Browse files
committed
Improve NextWriter documentation
1 parent c908dc8 commit f918560

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conn.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ func (c *Conn) prepWrite(messageType int) error {
484484
//
485485
// There can be at most one open writer on a connection. NextWriter closes the
486486
// previous writer if the application has not already done so.
487+
//
488+
// All message types (TextMessage, BinaryMessage, CloseMessage, PingMessage and
489+
// PongMessage) are supported.
487490
func (c *Conn) NextWriter(messageType int) (io.WriteCloser, error) {
488491
if err := c.prepWrite(messageType); err != nil {
489492
return nil, err

0 commit comments

Comments
 (0)