示例#1
0
class WebSocketChaussette( GEventServer ):
   handler_class = WebSocketWSGIHandler
   def __init__(self,*args,**kwargs):
        self.server = GEventServer.__init__(self, *args, **kwargs)	
	self.pool = GEventWebSocketPool()
   def close(self):
	self.pool.close()
示例#2
0
class WebSocketChaussette(GEventServer):
    handler_class = WebSocketWSGIHandler

    def __init__(self, *args, **kwargs):
        self.server = GEventServer.__init__(self, *args, **kwargs)
        self.pool = GEventWebSocketPool()

    def close(self):
        self.pool.close()
class ws4pyServer(GeventServer):
    handler_class = WebSocketWSGIHandler

    def __init__(self, *args, **kwargs):
        GeventServer.__init__(self, *args, **kwargs)
        self.pool = GEventWebSocketPool()

    def stop(self, *args, **kwargs):
        self.pool.clear()
        self.pool = None
        GeventServer.stop(self, *args, **kwargs)
示例#4
0
class Server(GeventServer):
    handler_class = WebSocketWSGIHandler

    def __init__(self, *args, **kwargs):
        GeventServer.__init__(self, *args, **kwargs)
        self.pool = GEventWebSocketPool()

    def stop(self, *args, **kwargs):
        self.pool.clear()
        self.pool = None
        GeventServer.stop(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     GeventServer.__init__(self, *args, **kwargs)
     self.pool = GEventWebSocketPool()
示例#6
0
 def __init__(self, *args, **kwargs):
     GeventServer.__init__(self, *args, **kwargs)
     self.pool = GEventWebSocketPool()