我無法通過凱瓦聊天客戶端連接到我的ejabberd服務器。這是我的ejabberd服務器配置:無法通過凱瓦聊天客戶端使用websocket連接到ejabberd
hosts:
- "myserver.com"
listen:
-
port: 5280
module: ejabberd_http
certfile: "/Applications/ejabberd-15.10/conf/myserver.pem"
request_handlers:
"/websocket": ejabberd_http_ws
web_admin: true
http_bind: true
captcha: false
,這是我Kaiwa配置文件:
{
"isDev": true,
"http": {
"host": "localhost",
"port": 8000
},
"server": {
"domain": "myserver.com",
"wss": "wss://myserver.com:5280/websocket/"
}
}
,當我嘗試登錄我得到這個錯誤:
WebSocket連接到「WSS:/ /myserver.com:5280/websocket'失敗:連接建立時出錯:net :: ERR_CONNECTION_CLOSED
我的ejabberd版本是15.10,它應該支持websocket。
我將不勝感激任何幫助。
我已經嘗試過wss和ws。我在我的ejabberd中將tls設置爲true,但仍然是相同的錯誤 – Besat
ejabberd日誌中是否有任何錯誤消息? – legoscia
沒有錯誤!但我得到一些警告: eldap:handle_info:709 LDAP服務器關閉連接:myserver.com:389 – Besat