(require("leancloud-realtime-plugin-typed-messages"))()

初始化 TypedMessages 插件,使用后可支持接收 LeanCloud 提供的富媒体类型的消息
Example
const { TypedMessagesPlugin } = initPlugin(AV, Rtm);
const realtime = new Realtime({
  appId: appId,
  appKey: appKey,
  server: server,
  plugins: TypedMessagesPlugin,
});