I am starting on a web project, rewriting a database web front-end. I want the new version to use websockets, and since I know Perl well, Mojolicious looks like the way to go. I don't want to use Mojolicious::Lite - I want a grown-up multi-file project that is good and modular and that can be easily expanded.
I can write a Mojolicious app that serves out pages, and I've written one that serves a main page that sets up a WebSocket in javascript, but for the life of me I can't work out how to write the Mojolicious::Controller. Every single example I can find uses Mojolicious::Lite, and when I try to translate them to plain Mojolicious, they don't work. My latest example gets as far as timing out the WebSocket connection, which I suppose is progress, but I can't get beyond this...
Yes, I've read the documentation, but it really isn't aimed at websocket-based apps. Yes, I can write a Mojolicious application that serves out pages, and I understand the templating stuff. I'd hate to start using something like Python, but having said that the Python tornado framework supports websockets, is simple, and includes a full working example in the CentOS package python-tornado-doc.
So please please pretty please does somebody out there have an example of a Mojolicious websocket application? Once I have something even as simple as an echo, I should be able to move forward.
Lezz Giles