Unable to send the payload in pubsub

I am trying to send following payload to “testNode”

node.send(new PayloadItem("autoIncrement*" + System.currentTimeMillis(), new SimplePayload("book",
    "pubsub:test:book", "<book xmlns='pubsub:test:book'><title>Lord of the Rings</title></book>")));

I on receiver side (strophejs code) i am getting this

<message
	xmlns="jabber:client" from="pubsub.xyz.com" to="hello@pubsub.xyz.com" id="Z6Vh7NoH">
	<event
		xmlns="http://jabber.org/protocol/pubsub#event">
		<items node="testNode">
			<item id="autoIncrement*1602072295295"></item>
		</items>
	</event>
	<headers
		xmlns="http://jabber.org/protocol/shim">…
	</headers>
</message>

I am using Smack 4.3.5 version

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.