ID will be autogenerated (like from): Done by dispatcher as it wraps transports send, when plugged into NonBlockingClient.
This commit is contained in:
parent
be6440d010
commit
d23aa630ba
|
@ -71,7 +71,7 @@ class ConnectionPubSub:
|
||||||
query = xmpp.Iq('set', to=jid)
|
query = xmpp.Iq('set', to=jid)
|
||||||
e = query.addChild('pubsub', namespace=xmpp.NS_PUBSUB)
|
e = query.addChild('pubsub', namespace=xmpp.NS_PUBSUB)
|
||||||
e = e.addChild('publish', {'node': node})
|
e = e.addChild('publish', {'node': node})
|
||||||
e = e.addChild('item', {'id': id_}, [item]) # TODO: we should generate id... or we shouldn't?
|
e = e.addChild('item', {'id': id_}, [item])
|
||||||
|
|
||||||
self.connection.send(query)
|
self.connection.send(query)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue