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