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 58e26a4 commit 61830e9Copy full SHA for 61830e9
websocket.go
@@ -801,6 +801,7 @@ func init() {
801
802
// Ping sends a ping to the peer and waits for a pong.
803
// Use this to measure latency or ensure the peer is responsive.
804
+// TCP Keepalives should suffice for most use cases.
805
func (c *Conn) Ping(ctx context.Context) error {
806
err := c.ping(ctx)
807
if err != nil {
0 commit comments