Skip to content

Commit

Permalink
Improve NextWriter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
garyburd committed Oct 10, 2017
1 parent c908dc8 commit f918560
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f918560

Please sign in to comment.