节-发布选项 与一起使用的插件可以启用带有选项的发布。 安装 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;