Beispiel #1
0
 def _handle_ping(self, event: Ping) -> None:
     if EventType.PING in self._callbacks:
         self._callbacks[EventType.PING](event.payload)
     self._sock.sendall(self._ws.send(event.response()))
Beispiel #2
0
 def _handle_ping(self, event: Ping) -> None:
     self._client.sendall(self._ws.send(event.response()))
Beispiel #3
0
 async def _handle_ping_event(self, event: Ping):
     logger.debug('%s pings with %r', self, event.payload)
     await self._send(event.response())