Closed turanmehmetb closed 4 years ago
to
should be set as an attribute to the iq
not a third argument
There's no third argument for the method request
see https://github.com/xmppjs/xmpp.js/tree/master/packages/iq#request
Oh okay my bad, thank you. I got this but additionally can you say that how can i set this presence
xmpp.send(xml('presence', {from: '', to: ''}, xml('x', {xmlns: 'http://jabber.org/protocol/muc'}))
Hi, im trying to send an IQ for room creating.
Setting up the iq like this ends with
SENT: <iq type="set" id="907jwsaego" xmlns="jabber:client"><query xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data" type="submit"/></query></iq>
In return it says:
On IQ: <iq type="error" xmlns="jabber:client" to="mbt@ec2-15-185-81-171.me-south-1.compute.amazonaws.com/3TdPKctr" id="907jwsaego"><error type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
In my prosody config file i ve enabled muc and the subdomain so can you guys help me about this one?