APM: perl - websockets - Mojolicious ?

David Slimp david at David-Slimp.com
Wed Jan 2 20:30:48 PST 2013


Gary,

Thanks for the input.
It's my understanding that Mojolicious is specifically built for what
I'm trying to do with stateful / websockets stuff, as their page says this:
"Full stack HTTP and WebSocket client/server implementation"

At any rate, I'm not insisting I need to use Mojolicious, but what I
was asking in my original email, was that I've spent several days looking
around at the web for any types of "websockets-like" working examples
and found a few, but I have not been able to get ANY of them to work for me!

So, I'm asking here if anyone actually has a working example of something
being done in perl with websockets (Mojolicious or WebSocket.pm or
ANYTHING) ?!

Do you?  Or know someone who does?

thanks,
David


On Wed, Jan 2, 2013 at 6:14 PM, Gary Warman <warman.t.gary at gmail.com> wrote:

> Aloha David!
>
> I can't see Mojolicious working too well with websockets, as
> websockets send a persistent connection to whoever is connecting, and
> mojolicious is designed for HTTP transmission, which as we all know,
> is a stateless, one-off packet. If you had to reload the page to
> reload a new resource, you may as well have defeated the purpose of
> having that single stream of communication open, innit? Though,
> systems like mojolicious are good for building the HTTP backend of the
> website if the whole website doesn't have to be websocketed. Seems
> like it might be a combination of Mojolicious and
>
> http://search.cpan.org/~vti/Protocol-WebSocket-0.12/lib/Protocol/WebSocket.pm
>
> On 12/2/12, David Slimp <david at david-slimp.com> wrote:
> > Hey folks!
> >
> > I've got a project that the new HTML 5 websockets would be perfect for!
> >
> > I've spent the last 2 days looking around the web and I think Mojolicious
> > is probably the Perl module I want.  There are a few pages with samples,
> > but none really seem to work (for me) !
> >
> > Is anyone on this list doing something with Perl and websockets?
> >
> > Does anyone have an example that actually works?
> >
> > thanks!
> > David
> >
>
>
> --
> Thank you,
> Gary Warman
>
> LinkedIn <http://www.linkedin.com/in/garywarman>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/austin/attachments/20130102/df998c66/attachment.html>


More information about the Austin mailing list