使用用户'username @ localhost'连接到openfire服务器后,我正在尝试创建一个群聊即时空间,所以首先我按照此处的指定发送Presence Stanza:
<presence from='username@localhost' to='testroom@conference.localhost' xmlns='jabber:client'>
<x xmlns='http://jabber.org/protocol/muc'></x>
</presence>
Run Code Online (Sandbox Code Playgroud)
但是响应始终是一个错误:
<presence ... from='testroom@conference.localhost type='error'>
<x xmlns='http://jabber.org/protocol/muc></x>
<error code='400' type='modify'>
<bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanza"></bad-request>
</error>
</presence>
Run Code Online (Sandbox Code Playgroud)
我是否需要对Openfire进行任何配置才能使其正常工作?我知道你可以用Openfire Gui创建一个群聊室,并且工作正常,但当我尝试加入聊天室时,我得到了同样的错误.