MCPcopy
hub / github.com/encode/uvicorn / schedule_ping

Method schedule_ping

uvicorn/protocols/websockets/wsproto_impl.py:282–285  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

280 self.pending_ping_payload = None
281
282 def schedule_ping(self) -> None:
283 assert self.ping_interval is not None
284 delay = max(0.0, self.ping_interval - self.last_ping_rtt)
285 self.ping_timer = self.loop.call_later(delay, self.send_keepalive_ping)
286
287 def send_keepalive_ping(self) -> None:
288 self.ping_timer = None

Callers 3

handle_pongMethod · 0.95
start_keepaliveMethod · 0.95
send_keepalive_pingMethod · 0.95

Calls 1

call_laterMethod · 0.45

Tested by

no test coverage detected