ircanywhere / irc-factory

A rebuilt irc-factory from simple-irc-socket and irc-message. Get support at #ircanywhere on freenode
https://ircanywhere.com
MIT License
60 stars 14 forks source link

Fix type error and use pong for timeout. #22

Closed rodms10 closed 9 years ago

rodms10 commented 10 years ago

There was a typo where this.connection.localPort.**impl** was used instead of this.connection.**impl**.localPort that was causing a crash when trying to connect.

Even with that fix I was getting the client destroyed very quickly and ircanywhere was looping trying to reestablish it. This was happening because _lasttime was not being updated and the connection was timing out. I've added a regular PING and update _lasttime on PONG.

I also increased the timeout and interval time, they were pretty aggressive. Seem to be working OK now.