예제 #1
0
 def _subscribe(self):
     '''
     Подписывается на сообщения.
     '''
     client_dispatcher.subscribe(messages.ClientRequestMessage, self._on_client_request)
     client_dispatcher.subscribe(messages.ClientDisconnectedMessage, self._on_client_disconnected)
     user_dispatcher.subscribe(messages.UserResponseMessage, self._on_user_response)
예제 #2
0
 def _init_subscription(self):
     '''
     Инициализирует подписку.
     '''
     client_dispatcher.subscribe(messages.ClientResponseMessage, self._on_client_response)