Ejemplo n.º 1
0
 def __init__(self, sock, address, server, rfile=None):
     if server.socket_type == socket.AF_UNIX:
         address = ['0.0.0.0']
     UpgradableWSGIHandler.__init__(self, sock, address, server, rfile)
Ejemplo n.º 2
0
 def __init__(self, socket, address, broker):
     UpgradableWSGIHandler.__init__(self, socket, address, broker.frontend)
     self.server.application = WebSocketUpgradeMiddleware(
         self.handle_websocket)  #, self.handle_http)
     self.broker = broker
Ejemplo n.º 3
0
 def __init__(self, socket, address, broker):
     UpgradableWSGIHandler.__init__(self, socket, address, broker.frontend)
     self.server.application = WebSocketUpgradeMiddleware(
         self.handle_websocket) #, self.handle_http)
     self.broker = broker