0
我試圖在Mongoseim Server的iOS應用程序中實現muc light。羣聊我使用muclight但是當我通過我的發現服務:Muc light not working due to service not available
let toStr: String = XMPPConstants.ConnectionHost // my xmpp connection host
let query = XMLElement(name: "query", xmlns: "http://jabber.org/protocol/disco#item")
let iq = XMPPIQ(type: "get", to: XMPPJID(string: toStr), elementID: xmppStream.generateUUID(), child: query)
iq?.addAttribute(withName: "from", stringValue: xmppStream.myJID.bare())
xmppStream.send(iq)
我收到錯誤,如響應:
<error type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
請幫助我如何解決這個錯誤。 我是否需要配置服務器部件或其他東西?
請詳細解釋。
感謝提前:)