stanza publishoptions:与https一起使用的插件 源码
节-发布选项 与一起使用的插件可以启用带有选项的发布。 安装 npm install stanza-publishoptions 用法: import { createClient, JXT } from 'stanza'; import PublishWithOptionsPlugin from 'stanza-publishoptions'; const client = createClient({ jid: '', password: '' }); client.use(PublishWithOptionsPlugin); export const NS_MY_PUBSUB = 'testnamespace'; export interface MyPubSubContent { itemType?: typeof NS_MY_PUBSUB;
文件列表
stanza-publishoptions-master.zip
(预估有个8文件)
stanza-publishoptions-master
.gitignore
37B
.eslintrc
401B
package.json
1KB
package-lock.json
129KB
src
index.ts
2KB
tsconfig.json
654B
README.md
2KB
.eslintignore
16B
暂无评论