socketio.sgunicorn¶
-
class
socketio.sgunicorn.GeventSocketIOBaseWorker(age, ppid, socket, app, timeout, cfg, log)[source]¶ Bases:
gunicorn.workers.ggevent.GeventPyWSGIWorkerThe base gunicorn worker class
-
transports= None¶
-
-
class
socketio.sgunicorn.GeventSocketIOWorker(age, ppid, socket, app, timeout, cfg, log)[source]¶ Bases:
socketio.sgunicorn.GeventSocketIOBaseWorkerDefault gunicorn worker utilizing gevent
Uses the namespace ‘socket.io’ and defaults to the flash policy server being disabled.
-
policy_server= True¶
-
resource= 'socket.io'¶
-
server_class¶ alias of
SocketIOServer
-
ws_wsgi_handler¶ alias of
GunicornWebSocketWSGIHandler
-
wsgi_handler¶ alias of
GunicornWSGIHandler
-
-
class
socketio.sgunicorn.GunicornWSGIHandler(config, *args, **kwargs)[source]¶ Bases:
gunicorn.workers.ggevent.PyWSGIHandler,socketio.handler.SocketIOHandler
-
class
socketio.sgunicorn.GunicornWebSocketWSGIHandler(socket, address, server, rfile=None)[source]¶ Bases:
geventwebsocket.handler.WebSocketHandler
-
class
socketio.sgunicorn.NginxGeventSocketIOWorker(age, ppid, socket, app, timeout, cfg, log)[source]¶ Bases:
socketio.sgunicorn.GeventSocketIOWorkerWorker which will not attempt to connect via websocket transport
Nginx is not compatible with websockets and therefore will not add the wsgi.websocket key to the wsgi environment.
-
transports= ['xhr-polling']¶
-