Add heartbeat to websocket connections (#11298)
This commit is contained in:
parent
d687bc073e
commit
7a600ea064
2 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ class ActiveConnection:
|
|||
def handle(self):
|
||||
"""Handle the websocket connection."""
|
||||
request = self.request
|
||||
wsock = self.wsock = web.WebSocketResponse()
|
||||
wsock = self.wsock = web.WebSocketResponse(heartbeat=55)
|
||||
yield from wsock.prepare(request)
|
||||
self.debug("Connected")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue