const createRoom = { method: 'POST', // This requires to install a plugin! Please check list on openfire // admin dashboard. Search for HTTP API url: xmpp_api_url + '/plugins/restapi/v1/chatrooms', headers: { 'Content-Type': 'application/json', Authorization: xmpp_auth }, body: { options: { roomName: xmpp_muc_name, naturalName: xmpp_muc_name, description: "Secure channel generated by https://vxmppb.tk", subject: "Secure channel generated by https://vxmppb.tk", persistent: "false", publicRoom: "false", registrationEnabled: "false", canOccupantsChangeSubject: "false", membersOnly: "true", moderated: "true", members: { // Member!? MEMBER?!? Ooo ooo! Member?! "member": [ config.friends ] }, } } }