Пример #1
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-client', self.add_client)
     self.bus.subscribe('get-client', self.get_client)
     self.bus.subscribe('del-client', self.del_client)
     self.bus.subscribe('get_main-client', self.get_main_client_num)
     self.bus.subscribe('switch-state', self.switch_state)
Пример #2
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-client', self.add_client)
     self.bus.subscribe('del-client', self.del_client)
     self.bus.subscribe('get-clients', self.get_clients)
     self.bus.subscribe('add-history', self.add_history)
     self.bus.subscribe('get-history', self.get_history)
     self.bus.subscribe('del-history', self.del_history)
     self.bus.subscribe('process-command', self.process_command)
Пример #3
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-server', self.add_server)
     self.bus.subscribe('get-server', self.get_server)
     self.bus.subscribe('del-server', self.del_server)
     self.bus.subscribe('add-client', self.add_client)
     self.bus.subscribe('get-client', self.get_client)
     self.bus.subscribe('del-client', self.del_client)
     self.bus.subscribe('check-client', self.check_client_exists)
     self.bus.subscribe('get-clients', self.get_clients)
Пример #4
0
    def start(self):
        """
        Start the websocket plugin and add (subscribe) routines to add, remove
        or send to a client.

        """
        WebSocketPlugin.start(self)
        self.bus.subscribe('websocket-add', self.websocket_add)
        self.bus.subscribe('websocket-remove', self.websocket_remove)
        self.bus.subscribe('websocket-send', self.websocket_send)
Пример #5
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-metrics-receiver', self.add_metrics_receiver)
     self.bus.subscribe('get-metrics-receivers', self.get_metrics_receivers)
     self.bus.subscribe('remove-metrics-receiver',
                        self.remove_metrics_receiver)
     self.bus.subscribe('add-events-receiver', self.add_events_receiver)
     self.bus.subscribe('get-events-receivers', self.get_events_receivers)
     self.bus.subscribe('remove-events-receiver',
                        self.remove_events_receiver)
     self.bus.subscribe('update-events-receiver',
                        self.update_events_receiver)
     self.bus.subscribe('add-maintenance-receiver',
                        self.add_maintenance_receiver)
     self.bus.subscribe('get-maintenance-receivers',
                        self.get_maintenance_receivers)
     self.bus.subscribe('remove-maintenance-receiver',
                        self.remove_maintenance_receiver)
Пример #6
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-client', self.add_client)
     self.bus.subscribe('get-client', self.get_client)
     self.bus.subscribe('del-client', self.del_client)
Пример #7
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('x-add-websocket', self.add_websocket)
Пример #8
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-client', self.add_client)
     self.bus.subscribe('get-client', self.get_client)
     self.bus.subscribe('del-client', self.del_client)
Пример #9
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe("add", self.add)
     self.bus.subscribe("get", self.get)
     self.bus.subscribe("remove", self.remove)
Пример #10
0
 def start(self):
     WebSocketPlugin.start(self)
Пример #11
0
 def start(self):
     WebSocketPlugin.start(self)
Пример #12
0
 def start(self):
     WebSocketPlugin.start(self)
     self.bus.subscribe('add-client', self.add_client)