Преглед изворни кода

Improve NextWriter documentation

Gary Burd пре 8 година
родитељ
комит
f918560c4c
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      conn.go

+ 3 - 0
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