kiwiirc / irc-framework

🛠️ A better IRC framework for node.js. For bots and full clients.
MIT License
181 stars 64 forks source link

Start periodic pings after registration #232

Closed xPaw closed 2 years ago

xPaw commented 4 years ago

Right now this is possible:

11:48 *** PING kiwitime-1578307712198
11:48 *** :server.com 451 test-test PING :You have not registered

This ping should probably be started after registration.

However the ping timeout timer should still start after socket connection (which right now only appears to start when receiving any message from the server by calling resetPingTimeoutTimer).

Or are we fine with errors because it resets the timeout timer?