I've worked on-and-off to make some helper mechanisms for pinging. What I 
have so far is available to look at 
here: https://github.com/jberger/Mojo-WebSocket-Pinger .

I think the problem with core functionality is making it generic but still 
useful. There are all kinds of things you might want it to do. Do you want 
a callback to trigger when the pong returns? How often should it ping? The 
patterns for doing so aren't completely obvious (which is why I haven't 
settled on anything and released that module to CPAN).

Anyway, I'd appreciate any input and maybe we can get something to CPAN 
sooner than later.

Cheers,
Joel

On Monday, March 18, 2019 at 4:28:55 PM UTC-5, Dan Book wrote:
>
> Perhaps you may want the websocket to time out when idle. I believe this 
> feature has been discussed in the past but I can't find an issue about it.
>
> -Dan
>
> On Mon, Mar 18, 2019 at 5:15 PM Veesh Goldman <[email protected]> 
> wrote:
>
>> Why doesn't Mojo::UserAgent automatically send pings when connected to a 
>> websocket? Under what circumstances would I not want to ping to show the 
>> connection is alive?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mojolicious" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to