(self, code=1001, message='Server is shutting down')
Execute the :meth:`close() <ws4py.websocket.WebSocket.close>`
        method of each registered websockets to initiate the closing handshake.
        It doesn't wait for the handshake to complete properly.
Execute the :meth:`close() <ws4py.websocket.WebSocket.close>`
        method of each registered websockets to initiate the closing handshake.
        It doesn't wait for the handshake to complete properly.
Execute the : meth : close () <ws4py . websocket . WebSocket . close > method of each registered websockets to initiate the closing handshake . It doesn t wait for the handshake to complete properly .
def close_all(self, code=1001, message='Server is shutting down'):
        """
        Execute the :meth:`close() <ws4py.websocket.WebSocket.close>`
        method of each registered websockets to initiate the closing handshake.
        It doesn't wait for the handshake to complete properly.
        """
        with self.lock:
            logger.info("Closing all websockets with [%d] '%s'" % (code, message))
            for ws in iter(self):
                ws.close(code=1001, reason=message)
def close_all ( self , code = 1001 , message = 'Server is shutting down' ) : with self . lock : logger . info ( "Closing all websockets with [%d] '%s'" % ( code , message ) ) for ws in iter ( self ) : ws . close ( code = 1001 , reason = message )