mdvtools.websocket#
Attributes#
Classes#
Represents the Flask request object when in a Flask-SocketIO event context. |
Functions#
|
|
|
Experimental and not to be trusted pending design work etc. |
Module Contents#
- class mdvtools.websocket.SocketIOContextRequest[source]#
Bases:
flask.Request
Represents the Flask request object when in a Flask-SocketIO event context. This protocol ensures the ‘sid’ (session ID) attribute is recognized by type checkers.
- mdvtools.websocket.mdv_socketio(app: flask.Flask)[source]#
Experimental and not to be trusted pending design work etc.
Do we have a SocketIO for the entire app and route messages internally, - yes probably. What path should it use? We’ll need to make sure it is compatible with - the vite dev server proxy - the app not being at the root of the domain
!! What about cors? We had a wildcard for previous experiment - should be reviewed before getting pushed online.#