def handle(self, *args, **options):
        MindmapWebSocketRouter = SockJSRouter(handlers.MindmapWebSocketHandler, '/ws')

        app_kwargs = {}
        if settings.ENVIRONMENT.IS_FOR_DEVELOPMENT:
            app_kwargs['debug'] = True

        app = web.Application(MindmapWebSocketRouter.urls, **app_kwargs)
        app.listen(settings.MINDMAPTORNADO_BIND_PORT)

        try:
            ioloop.IOLoop.instance().start()
        except __HOLE__:
            ioloop.IOLoop.instance().stop()
dataset/ETHPy150Open ierror/BeautifulMind.io/beautifulmind/mindmaptornado/management/commands/mindmaptornado_run.py/Command.handle