MCPcopy
hub / github.com/nats-io/nats.go / processPing

Method processPing

nats.go:4020–4022  ·  view source on GitHub ↗

processPing will send an immediate pong protocol response to the server. The server uses this mechanism to detect dead clients.

()

Source from the content-addressed store, hash-verified

4018// processPing will send an immediate pong protocol response to the
4019// server. The server uses this mechanism to detect dead clients.
4020func (nc *Conn) processPing() {
4021 nc.sendProto(pongProto)
4022}
4023
4024// processPong is used to process responses to the client's ping
4025// messages. We use pings for the flush mechanism as well.

Callers 1

parseMethod · 0.95

Calls 1

sendProtoMethod · 0.95

Tested by

no test coverage detected