I am working on a Pyramid python application which employs python-socketio to communicate with the frontend, but I find no information about how best to integrate the my Pyramid views and models with socket.io calls.
I adapted python-socketio Flask example to use Pyramid (and it works): https://github.com/pascalin/python-socketio/blob/main/examples/server/wsgi/pyramid_app.py
But even when Pyramid and socket.io calls coexist, the socket.io server does not check for the security policy which Pyramid is employing, and I would like to be able to emit socket.io events based on Pyramid events and views. Do you have any suggestions about how to take this simple example in the direction I want?
Thank you!