Middleware
convert any WSGI compatible web framework to Websocket+HTTP framework using middleware.
works with many WSGI compatible servers
can used with any WSGI compatible web framework
Flask, Django, Pyramid, Bottle, ... supported
This middleware adds wsgi.websocket
variable to WSGI environment dictionary.
example with bottle:
you should use HTTP version 1.1
Server with your WSGI framework for some clients like Firefox browser
for examples on other web frameworks visit examples/frameworks
folder
WSocketApp
Class variables
GUID
- unique ID to generate websocket accept key
SUPPORTED_VERSIONS
- 13, 8 or 7
websocket_class
- "wsgi.websocket"
in WSGI Environ
Last updated
Was this helpful?