socketio.sgunicorn

class socketio.sgunicorn.GeventSocketIOBaseWorker(age, ppid, socket, app, timeout, cfg, log)[source]

Bases: 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: 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 SocketIOServer

ws_wsgi_handler

alias of GunicornWebSocketWSGIHandler

wsgi_handler

alias of GunicornWSGIHandler

class socketio.sgunicorn.GunicornWSGIHandler(config, *args, **kwargs)[source]

Bases: PyWSGIHandler, SocketIOHandler

class socketio.sgunicorn.GunicornWebSocketWSGIHandler(sock, address, server, rfile=None)[source]

Bases: WebSocketHandler

log_request()[source]
class socketio.sgunicorn.NginxGeventSocketIOWorker(age, ppid, socket, app, timeout, cfg, log)[source]

Bases: 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']