Mopidy web extension doesn't appear to support web sockets [solved]

I fixed it, it was a problem with the way I was calling tornado.iostream.IOStream to connect to an external TCP service.


Hi all,

I am trying to create a Mopidy web extension which uses ‘tornado.websocket.WebSocketHandler’.

When initialising the extension with the registry.add(‘http:app’) method in my init.py, Mopidy fails with an error “runtimeError: Method not supported for Web Sockets”

Reverting to ‘tornado.web.RequestHandler’ works as expected.

Is it possible to add support for tornado.websocket.WebSocketHandler?

Thanks,

Ed.

This sounds like something we should try to support. Can you open an issue at https://github.com/mopidy/mopidy/issues for this?