lizmat / IRC-Client

Raku module for building IRC (Internet Relay Chat) clients
Artistic License 2.0
14 stars 7 forks source link

Handling PING yourself #50

Open AlexDaniel opened 6 years ago

AlexDaniel commented 6 years ago

It seems that it is not possible to handle PING requests yourself. It returns early and the user is not given a chance to receive the event.

Being annoyed by bots getting stuck in disconnected state, I wanted to add a watchdog that will have its timestamp updated every time a ping request is received. I'm not sure if that's the best way to handle it, but at least it will work (if only I can find a way to process pings somehow).

AlexDaniel commented 6 years ago

Maybe related: https://github.com/zoffixznet/perl6-IRC-Client/issues/40

melezhik commented 1 year ago

👍