Skip to content

Commit

Permalink
Add keep Alive
Browse files Browse the repository at this point in the history
  • Loading branch information
prfiredragon authored Oct 6, 2016
1 parent ea702e9 commit ddfb1ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/xmppbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ var Actor = function() {
this.bot.addListener('online', this.setState);
this.bot.addListener('stanza', this.rawStanza);
this.bot.addListener("error", this.logError);
this.bot.connection.socket.setTimeout(0)
this.bot.connection.socket.setKeepAlive(true, 10000)

}

Expand Down

0 comments on commit ddfb1ba

Please sign in to comment.