我已经安装了strophejs-plugin-chatstates,以一对一的聊天方式发送用户的合成状态。我的代码中存在与本地strophe的连接
this.connection = new Strophe.Connection(`${EJABBERD_URL}/bosh`,
{ mechanisms: [] });
strophejs-plugin-mam,其用法如下
this.connection.mam.query(jid, options);
但是,如果我使用发送发送合成状态,则会出现错误>
this.connection.chatstates.sendComposing(jid, type);
错误是:
ERROR TypeError: Cannot read property 'sendComposing' of undefined
我写错了吗?或如何将聊天状态与我的服务联系起来?
我已经安装了strophejs-plugin-chatstates,以一对一的聊天方式发送用户的合成状态。我的代码中存在与本地口号this.connection = new Strophe.Connection(`$ ...
将不得不在angular.json文件中添加该特定node_module的路径以进行连接。