MCPcopy Create free account
hub / github.com/dank/rlapi / schedulePing

Method schedulePing

psynetrpc.go:150–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150func (p *PsyNetRPC) schedulePing() {
151 p.mu.Lock()
152 defer p.mu.Unlock()
153
154 if !p.connected || p.wsConn == nil {
155 return
156 }
157
158 p.pingTimer = time.AfterFunc(pingInterval, p.sendPing)
159}
160
161func (p *PsyNetRPC) sendPing() {
162 pingMessage, err := p.buildMessage(map[string]string{"PsyPing": ""}, nil)

Calls

no outgoing calls