I'm currently developing a plugin for octoprint, which uses sockjs-tornado for the server side to create a websocket. Now I try to create my own one (because the default implementation of the octoprint socket does not support forwarding events to my plugin on incoming messages). Everything I get is a 404 and unfortunately google is not a very good friend at this.
I can create a flask blueprint plugin and as far as I understand it, every http request will be directly redirected to my plugin, but I don't know how to connect the flask blueprint and tornado socket.
Does anyone has a good piece of code to connect the tornado and flask blueprint?