Beispiel #1
0
 async def handle_ping(self, _: Ping):
     """ Handle an Ping message. Pong the backend """
     await ZMQUtils.send(self._backend_socket, Pong())
Beispiel #2
0
 async def handle_client_ping(self, client_addr, _: Ping):
     """ Handle an Ping message. Pong the client """
     await ZMQUtils.send_with_addr(self._client_socket, client_addr, Pong())
Beispiel #3
0
 async def __handle_ping(self, _ : Ping):
     """ Handle a Ping message. Pong the backend """
     self.__last_ping = time.time()
     await ZMQUtils.send(self.__backend_socket, Pong())