Permalink
Browse files

xmpp bug

  • Loading branch information...
1 parent ebe3ce1 commit 7b158b92fb20232f84b90e8982ad81e46f60d7f7 @stliu committed Feb 28, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pushservices/xmpp.coffee
@@ -19,7 +19,7 @@ class PushServiceXMPP
@handler.setup()
eventPublisher.on 'publish_event', (event, playload) =>
- nodeName = "/#{event.applicationKey}/#{event.name}"
+ nodeName = "/#{event.eventkey}"
@logger.verbose "publishing event #{nodeName} from xmpp with payload:"
@logger.verbose sys.inspect playload
@@ -39,7 +39,7 @@ class PushServiceXMPP
createEvent : (subscriber, event, options) ->
- nodeName = "/#{event.applicationKey}/#{event.name}"
+ nodeName = "/#{event.eventkey}"
if event.exists is 1
@logger.verbose "pubsub node #{nodeName} is not existed yet, about to create"
id = rand.generateKey 7

0 comments on commit 7b158b9

Please sign in to comment.