text: #!/usr/bin/env python3
  
  import pywind.evtframework.evt_dispatcher as dispatcher
  import pywind.web.handlers.websocket as websocket
  
  
  class appserver(dispatcher.dispatcher):
      __configs = None
  
      def __init__(self):
          super(appserver, self).__init__()
  
      def debug_run(self):
          self.create_poll()
          fd = self.create_handler(-1, websocket.ws_listener, ("127.0.0.1", 8000))
          self.get_handler(fd).after()
  
      def init_func(self):
          self.debug_run()
  
  
  app = appserver()
  app.ioloop()
  