Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/uvicorn
/ start_keepalive
Method
start_keepalive
uvicorn/protocols/websockets/wsproto_impl.py:269–271 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
267
self.schedule_ping()
268
269
def
start_keepalive(self) -> None:
270
if
self.ping_interval is not None and self.ping_interval > 0:
271
self.schedule_ping()
272
273
def
stop_keepalive(self) -> None:
274
if
self.ping_timer is not None:
Callers
1
send
Method · 0.95
Calls
1
schedule_ping
Method · 0.95
Tested by
no test coverage detected