[Mojolicious] Best alternative for client / server polling?

2020-05-18 Thread Miguel Manso
Hi there, Ive a Perl client that fetched some data every 3 seconds and post it to an API. Both client and server are written using mojo. Client uses Mojo::UserAgent to post JSON and server is a Mojolicious app being served with hypnotoad. I can have dozens of these clients which mean that each

Re: [Mojolicious] Best alternative for client / server polling?

2020-05-18 Thread Dan Book
Mojo::UserAgent is a great websocket client. See https://metacpan.org/pod/Mojolicious::Guides::Cookbook#WebSockets, and for the server https://metacpan.org/pod/Mojolicious::Guides::Cookbook#WebSocket-web-service . -Dan On Mon, May 18, 2020 at 7:47 PM Miguel Manso wrote: > Hi there, > > Ive a Pe

Re: [Mojolicious] Best alternative for client / server polling?

2020-05-18 Thread Felipe Gasper
> On May 18, 2020, at 7:45 PM, Miguel Manso wrote: > > Hi there, > > Ive a Perl client that fetched some data every 3 seconds and post it to an > API. Both client and server are written using mojo. Client uses > Mojo::UserAgent to post JSON and server is a Mojolicious app being served > wit