We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c908dc8 commit f918560Copy full SHA for f918560
conn.go
@@ -484,6 +484,9 @@ func (c *Conn) prepWrite(messageType int) error {
484
//
485
// There can be at most one open writer on a connection. NextWriter closes the
486
// previous writer if the application has not already done so.
487
+//
488
+// All message types (TextMessage, BinaryMessage, CloseMessage, PingMessage and
489
+// PongMessage) are supported.
490
func (c *Conn) NextWriter(messageType int) (io.WriteCloser, error) {
491
if err := c.prepWrite(messageType); err != nil {
492
return nil, err
0 commit comments