本文整理匯總了Python中ws4py.server.cherrypyserver.WebSocketPlugin.stop方法的典型用法代碼示例。如果您正苦於以下問題:Python WebSocketPlugin.stop方法的具體用法?Python WebSocketPlugin.stop怎麽用?Python WebSocketPlugin.stop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ws4py.server.cherrypyserver.WebSocketPlugin
的用法示例。
在下文中一共展示了WebSocketPlugin.stop方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: stop
# 需要導入模塊: from ws4py.server.cherrypyserver import WebSocketPlugin [as 別名]
# 或者: from ws4py.server.cherrypyserver.WebSocketPlugin import stop [as 別名]
def stop(self):
WebSocketPlugin.stop(self)
self.bus.unsubscribe('add-client', self.add_client)
self.bus.unsubscribe('get-client', self.get_client)
self.bus.unsubscribe('del-client', self.del_client)
self.bus.unsubscribe('get_main-client', self.get_main_client_num)
self.bus.unsubscribe('switch-state', self.switch_state)
示例2: stop
# 需要導入模塊: from ws4py.server.cherrypyserver import WebSocketPlugin [as 別名]
# 或者: from ws4py.server.cherrypyserver.WebSocketPlugin import stop [as 別名]
def stop(self):
WebSocketPlugin.stop(self)
self.bus.unsubscribe('add-client', self.add_client)
self.bus.unsubscribe('get-client', self.get_client)
self.bus.unsubscribe('del-client', self.del_client)
示例3: stop
# 需要導入模塊: from ws4py.server.cherrypyserver import WebSocketPlugin [as 別名]
# 或者: from ws4py.server.cherrypyserver.WebSocketPlugin import stop [as 別名]
def stop(self):
WebSocketPlugin.stop(self)
self.bus.unsubscribe("add", self.add)
self.bus.unsubscribe("get", self.get)
self.bus.unsubscribe("remove", self.remove)
示例4: stop
# 需要導入模塊: from ws4py.server.cherrypyserver import WebSocketPlugin [as 別名]
# 或者: from ws4py.server.cherrypyserver.WebSocketPlugin import stop [as 別名]
def stop(self):
self.bus.unsubscribe('websocket-message', self.message)
WebSocketPlugin.stop(self)