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 98779ee commit 5db7b71Copy full SHA for 5db7b71
read.go
@@ -52,7 +52,7 @@ func (c *Conn) Read(ctx context.Context) (MessageType, []byte, error) {
52
//
53
// Call CloseRead when you do not expect to read any more messages.
54
// Since it actively reads from the connection, it will ensure that ping, pong and close
55
-// frames are responded to.
+// frames are responded to. This means c.Ping and c.Close will still work as expected.
56
func (c *Conn) CloseRead(ctx context.Context) context.Context {
57
ctx, cancel := context.WithCancel(ctx)
58
go func() {
0 commit comments