【发布时间】:2020-03-30 04:25:18
【问题描述】:
这是我的聊天服务的方法,
sendCustomMessage(to, from, body) {
const query = $msg({to: to, from: from, type: 'chat'}).c("body").t(body);
console.log("query", query)
this._xmppConnection.send(query);
}
我遇到了 "$msg" 的问题。问题是“找不到名称'$msg'.ts(2304)”...请帮我解决一下
【问题讨论】:
-
sendCustomMessage(to, from, body) { const query = $msg({to: to, from: from, type: 'chat'}).c("body").t(body ); console.log("query", query) this._xmppConnection.send(query); }
标签: typescript xmpp ejabberd strophe strophe.js