socketio.handler
¶
This is a lower-level transports handler. It is responsible for calling your WSGI application.
-
class
socketio.handler.
SocketIOHandler
(config, *args, **kwargs)[source]¶ Bases:
gevent.pywsgi.WSGIHandler
-
RE_DISCONNECT_URL
= <_sre.SRE_Pattern object>¶
-
RE_HANDSHAKE_URL
= <_sre.SRE_Pattern object>¶
-
RE_REQUEST_URL
= <_sre.SRE_Pattern object>¶
-
handle_one_response
()[source]¶ This function deals with ONE INCOMING REQUEST from the web.
It will wire and exchange message to the queues for long-polling methods, otherwise, will stay alive for websockets.
-
handler_types
= {'flashsocket': <class 'socketio.transports.FlashSocketTransport'>, 'htmlfile': <class 'socketio.transports.HTMLFileTransport'>, 'jsonp-polling': <class 'socketio.transports.JSONPolling'>, 'websocket': <class 'socketio.transports.WebsocketTransport'>, 'xhr-multipart': <class 'socketio.transports.XHRMultipartTransport'>, 'xhr-polling': <class 'socketio.transports.XHRPollingTransport'>}¶
-