Exemplo n.º 1
0
 async def handle_ping(self, _: Ping):
     """ Handle an Ping message. Pong the backend """
     await ZMQUtils.send(self._backend_socket, Pong())
Exemplo n.º 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())
Exemplo n.º 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())