(self, websocket)
Manage a new websocket.

        First calls its :meth:`opened() <ws4py.websocket.WebSocket.opened>`
        method and register its socket against the poller
        for reading events.
Manage a new websocket.
Manage a new websocket .
def add(self, websocket):
        """
        Manage a new websocket.

        First calls its :meth:`opened() <ws4py.websocket.WebSocket.opened>`
        method and register its socket against the poller
        for reading events.
        """
        logger.info("Managing websocket %s" % format_addresses(websocket))
        websocket.opened()
        with self.lock:
            fd = websocket.sock.fileno()
            self.websockets[fd] = websocket
            self.poller.register(fd)
def add ( self , websocket ) : logger . info ( "Managing websocket %s" % format_addresses ( websocket ) ) websocket . opened ( ) with self . lock : fd = websocket . sock . fileno ( ) self . websockets [ fd ] = websocket self . poller . register ( fd )