(self, poller=None)
An event-based websocket manager. By event-based, we mean
        that the websockets will be called when their
        sockets have data to be read from.

        The manager itself runs in its own thread as not to
        be the blocking mainloop of your application.

        The poller's implementation is automatically chosen
        with ``epoll`` if available else ``select`` unless you
        provide your own ``poller``.
An event-based websocket manager. By event-based, we mean
        that the websockets will be called when their
        sockets have data to be read from.
An event - based websocket manager . By event - based we mean that the websockets will be called when their sockets have data to be read from .
def __init__(self, poller=None):
        """
        An event-based websocket manager. By event-based, we mean
        that the websockets will be called when their
        sockets have data to be read from.

        The manager itself runs in its own thread as not to
        be the blocking mainloop of your application.

        The poller's implementation is automatically chosen
        with ``epoll`` if available else ``select`` unless you
        provide your own ``poller``.
        """
        threading.Thread.__init__(self)
        self.lock = threading.Lock()
        self.websockets = {}

        if poller:
            self.poller = poller
        else:
            if hasattr(select, "epoll"):
                self.poller = EPollPoller()
                logger.info("Using epoll")
            else:
                self.poller = SelectPoller()
                logger.info("Using select as epoll is not available")
def __init__ ( self , poller = None ) : threading . Thread . __init__ ( self ) self . lock = threading . Lock ( ) self . websockets = { } if poller : self . poller = poller else : if hasattr ( select , "epoll" ) : self . poller = EPollPoller ( ) logger . info ( "Using epoll" ) else : self . poller = SelectPoller ( ) logger . info ( "Using select as epoll is not available" )