<div dir="ltr">This post (link below) gives the source code to several (claimed) working examples of web-socket servers in Perl. It is intended to compare and contrast building a websocket server at various levels of abstraction... from the fairly low level (Protocol::WebSocket running in any one of a number of Perl TCP event loops) to the high level (Mojolicious, Plack::Middleware::WebSocket, and AnyEvent::HTTP::Server) to the completely bare-bones (using nothing but IO::Socket::INET) .<div>
<br></div><div><a href="http://showmetheco.de/articles/2010/11/timtow-to-build-a-websocket-server-in-perl.html">http://showmetheco.de/articles/2010/11/timtow-to-build-a-websocket-server-in-perl.html</a><br></div><div><br>
</div><div>You may have already seen this article as it is the second link liste in a Google search for 'perl and websockets', and I cannot vouch for any of the code as I haven't tried it myself, but I'd be surprised if none of the 17 approaches mentioned in that article work... TIMTOWTDI strikes again.</div>
<div><br></div><div><br></div><div>Hope this Helps and Good Luck!</div><div>Montgomery</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 2, 2013 at 8:30 PM, David Slimp <span dir="ltr"><<a href="mailto:david@david-slimp.com" target="_blank">david@david-slimp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Gary,<br><br>Thanks for the input.<br>It's my understanding that Mojolicious is specifically built for what<br>I'm trying to do with stateful / websockets stuff, as their page says this:<br>
"Full stack HTTP and WebSocket client/server implementation"<br>
<br>At any rate, I'm not insisting I need to use Mojolicious, but what I<br>was asking in my original email, was that I've spent several days looking<br>around at the web for any types of "websockets-like" working examples<br>

and found a few, but I have not been able to get ANY of them to work for me!<br><br>So, I'm asking here if anyone actually has a working example of something<br>being done in perl with websockets (Mojolicious or WebSocket.pm or ANYTHING) ?!<br>

<br>Do you?  Or know someone who does?<br><br>thanks,<br>David<br><br><br><div class="gmail_quote">On Wed, Jan 2, 2013 at 6:14 PM, Gary Warman <span dir="ltr"><<a href="mailto:warman.t.gary@gmail.com" target="_blank">warman.t.gary@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Aloha David!<br>
<br>
I can't see Mojolicious working too well with websockets, as<br>
websockets send a persistent connection to whoever is connecting, and<br>
mojolicious is designed for HTTP transmission, which as we all know,<br>
is a stateless, one-off packet. If you had to reload the page to<br>
reload a new resource, you may as well have defeated the purpose of<br>
having that single stream of communication open, innit? Though,<br>
systems like mojolicious are good for building the HTTP backend of the<br>
website if the whole website doesn't have to be websocketed. Seems<br>
like it might be a combination of Mojolicious and<br>
<a href="http://search.cpan.org/~vti/Protocol-WebSocket-0.12/lib/Protocol/WebSocket.pm" target="_blank">http://search.cpan.org/~vti/Protocol-WebSocket-0.12/lib/Protocol/WebSocket.pm</a><div><div class="h5"><br>
<div><div><br>
On 12/2/12, David Slimp <<a href="mailto:david@david-slimp.com" target="_blank">david@david-slimp.com</a>> wrote:<br>
> Hey folks!<br>
><br>
> I've got a project that the new HTML 5 websockets would be perfect for!<br>
><br>
> I've spent the last 2 days looking around the web and I think Mojolicious<br>
> is probably the Perl module I want.  There are a few pages with samples,<br>
> but none really seem to work (for me) !<br>
><br>
> Is anyone on this list doing something with Perl and websockets?<br>
><br>
> Does anyone have an example that actually works?<br>
><br>
> thanks!<br>
> David<br>
><br>
<br>
<br>
</div></div></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">--<br>
Thank you,<br>
Gary Warman<br>
<br>
LinkedIn <<a href="http://www.linkedin.com/in/garywarman" target="_blank">http://www.linkedin.com/in/garywarman</a>><br>
</font></span></font></span></blockquote></div><br>
<br>_______________________________________________<br>
Austin mailing list<br>
<a href="mailto:Austin@pm.org">Austin@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/austin" target="_blank">http://mail.pm.org/mailman/listinfo/austin</a><br></blockquote></div><br></div>