def buildProtocol(self, addr):
     self.proto = WebSocketDeviceHiveProtocol(self, '/device')
     if not IWebSocketMessanger.implementedBy(self.proto.__class__):
         raise TypeError(
             'Protocol has to implement IWebSocketMessanger interface.')
     return self.proto
示例#2
0
 def buildProtocol(self, addr):
     self.proto = WebSocketDeviceHiveProtocol(self, '/client')
     return self.proto
示例#3
0
文件: ws.py 项目: sbambach/LiV
 def buildProtocol(self, addr):
     self.proto = WebSocketDeviceHiveProtocol(self, self.get_client_url())
     return self.proto