Skip to content

Commit 5db7b71

Browse files
committed
Clarify CloseRead docs
Closes #208
1 parent 98779ee commit 5db7b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: read.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (c *Conn) Read(ctx context.Context) (MessageType, []byte, error) {
5252
//
5353
// Call CloseRead when you do not expect to read any more messages.
5454
// Since it actively reads from the connection, it will ensure that ping, pong and close
55-
// frames are responded to.
55+
// frames are responded to. This means c.Ping and c.Close will still work as expected.
5656
func (c *Conn) CloseRead(ctx context.Context) context.Context {
5757
ctx, cancel := context.WithCancel(ctx)
5858
go func() {

0 commit comments

Comments
 (0)