コード例 #1
0
ファイル: webchat.py プロジェクト: tesla1856/LalkaChat
 def __init__(self, bus, settings):
     WebSocketPlugin.__init__(self, bus)
     self.daemon = True
     self.clients = []
     self.style_settings = settings
     self.history = []
     self.history_size = HISTORY_SIZE
コード例 #2
0
ファイル: ws.py プロジェクト: opmuse/opmuse
    def __init__(self, bus):
        try:
            import wsaccel
            wsaccel.patch_ws4py()
        except ImportError:
            # wsaccel isn't a requirement. also, this occurs when docs are
            # built on readthedocs.org
            pass

        BaseWebSocketPlugin.__init__(self, bus)
コード例 #3
0
ファイル: app.py プロジェクト: dangan249/WebSocket-for-Python
    def __init__(self, bus):
        """
        This plugin is the board controller. It keeps
        track of all boards and their registered participants.

        You may access the global instance of this plugin
        through the `bus.websockets` attribute.
        """
        WebSocketPlugin.__init__(self, bus)

        # every 30s, we check if we have dead boards
        # and we clean them
        plugins.Monitor(bus, self.drop_dead_boards, 30).subscribe()
    
        # board index to quickly retrieve
        # clients of a given board
        self.boards = {}
コード例 #4
0
ファイル: app.py プロジェクト: B-Rich/WebSocket-for-Python
    def __init__(self, bus):
        """
        This plugin is the board controller. It keeps
        track of all boards and their registered participants.

        You may access the global instance of this plugin
        through the `bus.websockets` attribute.
        """
        WebSocketPlugin.__init__(self, bus)

        # every 30s, we check if we have dead boards
        # and we clean them
        plugins.Monitor(bus, self.drop_dead_boards, 30).subscribe()
    
        # board index to quickly retrieve
        # clients of a given board
        self.boards = {}
コード例 #5
0
ファイル: websockets.py プロジェクト: rubengr/gateway
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.metrics_receivers = {}
     self.events_receivers = {}
     self.maintenance_receivers = {}
コード例 #6
0
 def __init__(self, bus, observer):
     WebSocketPlugin.__init__(self, bus)
     self.observer = observer
コード例 #7
0
ファイル: app.py プロジェクト: devkini/chatery
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.clients = {}
コード例 #8
0
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.ws_servers_lock = threading.Lock()
     self.ws_clients_lock = threading.Lock()
     self.ws_servers = dict()
     self.ws_clients = dict()
コード例 #9
0
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.clients = defaultdict(dict)
コード例 #10
0
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
コード例 #11
0
ファイル: websocket.py プロジェクト: movermeyer/tangelo
 def __init__(self, *pargs, **kwargs):
     WebSocketPlugin.__init__(self, *pargs, **kwargs)
コード例 #12
0
ファイル: websocket.py プロジェクト: renodim/tangelo
 def __init__(self, *pargs, **kwargs):
     WebSocketPlugin.__init__(self, *pargs, **kwargs)
コード例 #13
0
ファイル: server.py プロジェクト: lis-epfl/DRIC
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.clients = {}
     self.main_client_code = -1
コード例 #14
0
ファイル: webchat.py プロジェクト: DeForce/multichat_python
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.clients = []
     self.history = []
     self.history_size = HISTORY_SIZE
コード例 #15
0
ファイル: ol.py プロジェクト: AlexSnet/oneline
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.clients = {}
コード例 #16
0
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
コード例 #17
0
ファイル: webchat.py プロジェクト: robocobra/LalkaChat
 def __init__(self, bus):
     WebSocketPlugin.__init__(self, bus)
     self.clients = []
     self.history = []
     self.history_size = HISTORY_SIZE