Skip to content

Commit 61830e9

Browse files
committed
Clarify that TCP Keepalive should suffice for most usecases
1 parent 58e26a4 commit 61830e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

websocket.go

+1
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@ func init() {
801801

802802
// Ping sends a ping to the peer and waits for a pong.
803803
// Use this to measure latency or ensure the peer is responsive.
804+
// TCP Keepalives should suffice for most use cases.
804805
func (c *Conn) Ping(ctx context.Context) error {
805806
err := c.ping(ctx)
806807
if err != nil {

0 commit comments

Comments
 (0)