I am trying to create a chat room using StropheJS
My Code:
var presence = $pres({ to: "testRoom@conference@localhost/yashwanth, from: Strophe.getBareJidFromJid(connection.jid) });
Groupie.connection.send( presence.tree());
Groupie.connection.muc.createInstantRoom("testRoom@conference.localhost/yashwanth",
function(status) {
console.log("Room Created Successfully", status);
},
function(status) {
console.log("Error Creating Room", status);
});
While creating the room I am facing the below error.
I found that the roomJID should be in the format of room_name@conference@HOST@/nickname . So as per the format i send that. But it doesn't create the room.
Error Creating Room <iq xmlns="jabber:client" from=
"conference@conference.localhost" to="yashwanth@inst1.eab.com/
5441440311438943022710601" type="error" id="1:sendIQ"><query xmlns="http://
jabber.org/protocol/muc#owner">…</query><error code="404" type="cancel">
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></item-not-
found><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Conference room
does not exist</text></error></iq>
And I am using ejabberd as my XMPP server. If the room creates then in which database able the details related to the room will be saved? Either it save in muc_registered
table or muc_room
table?