Skip to content

Commit

Permalink
Add id to ping requests
Browse files Browse the repository at this point in the history
This seems to stop the ping error messages as per xmppjs#97
  • Loading branch information
shumphrey committed Nov 25, 2015
1 parent 4937921 commit 4c0a909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmpp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class XmppBot extends Adapter
@reconnectTryCount = 0

ping: =>
ping = new Stanza('iq', type: 'get')
ping = new Stanza('iq', type: 'get', id: 'hubot-xmpp')
ping.c('ping', xmlns: 'urn:xmpp:ping')

@robot.logger.debug "[sending ping] #{ping}"
Expand Down

0 comments on commit 4c0a909

Please sign in to comment.