Tennu / tennu

IRC Bot Framework for Node.js
https://tennu.github.io/
ISC License
78 stars 14 forks source link

Reconnect on disconnect #34

Closed domenkozar closed 9 years ago

domenkozar commented 10 years ago

If for some reason the client gets disconnected, it does not reconnect to the server, which is a bit annoying :)

Havvy commented 10 years ago

It just hasn't been written yet.

matejc commented 10 years ago

+1

domenkozar commented 10 years ago

See https://github.com/matejc/tennu-timeout-plugin/blob/master/timeout.js

Havvy commented 9 years ago

Given all the state in a Tennu connection, automatic reconnection is a lot of work that would be extremely complex, and I don't want to reimplement half of OTP (see: Erlang) when it's possible to add .on("quit", function () { tennu.Client(...).connect();} (though with more checks and whatnot).