socketio.sgunicorn
¶
-
class
socketio.sgunicorn.
GeventSocketIOBaseWorker
(age, ppid, socket, app, timeout, cfg, log)[source]¶ Bases:
gunicorn.workers.ggevent.GeventPyWSGIWorker
The base gunicorn worker class
-
run
()[source]¶ This is the mainloop of a worker process. You should override this method in a subclass to provide the intended behaviour for your particular evil schemes.
-
transports
= None¶
-
-
class
socketio.sgunicorn.
GeventSocketIOWorker
(age, ppid, socket, app, timeout, cfg, log)[source]¶ Bases:
socketio.sgunicorn.GeventSocketIOBaseWorker
Default 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
socketio.server.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
(sock, address, server, rfile=None)[source]¶ Bases:
geventwebsocket.handler.WebSocketHandler
-
class
socketio.sgunicorn.
NginxGeventSocketIOWorker
(age, ppid, socket, app, timeout, cfg, log)[source]¶ Bases:
socketio.sgunicorn.GeventSocketIOWorker
Worker 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']¶
-