Example #1
0
 def serve_forever(self):
     ws_server = WebSocketServer(('', self.port),
                                 self.transport.handle)
     gevent.spawn(ws_server.serve_forever)
     RPCServerGreenlets.serve_forever(self)
Example #2
0
 def serve_forever(self):
     wsgi_server = gevent.wsgi.WSGIServer(('', self.port),
                                          self.transport.handle)
     gevent.spawn(wsgi_server.serve_forever)
     RPCServerGreenlets.serve_forever(self)