mirror of https://gitlab.com/litecord/litecord.git
tests: reply with correct Pong event
This commit is contained in:
parent
0faae9fafd
commit
9b98257741
|
|
@ -82,7 +82,7 @@ class AsyncWebsocket:
|
||||||
# and fetch the next event
|
# and fetch the next event
|
||||||
event = next(self.ws.events())
|
event = next(self.ws.events())
|
||||||
if isinstance(event, Ping):
|
if isinstance(event, Ping):
|
||||||
await self.send(Pong())
|
await self.send(event.response())
|
||||||
event = next(self.ws.events())
|
event = next(self.ws.events())
|
||||||
|
|
||||||
if isinstance(event, CloseConnection):
|
if isinstance(event, CloseConnection):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue