def METHOD_NAME(self):
    """Stop the WebSocket server. No events can be sent."""
    assert self._is_running is True, 'Cannot stop, EventWebsocketFactory is not running'
    self._is_running = False
    for connection in self._connections:
        connection.sendClose()
    self._connections.clear()