Options
All
  • Public
  • Public/Protected
  • All
Menu

调用方式:

chatroom.chatroom.getInfo(options)

Hierarchy

  • ChatroomServiceInterface

Index

Methods

  • 获取本聊天室的信息

    example
    const chatroomInfo = await chatroom.chatroom.getInfo()
    

    Returns Promise<Chatroom>

  • 更新聊天室信息

    影响范围

    • 当更新聊天室时, 所有聊天室成员会收到类型为 'updateChatroom' 的聊天室通知消息。
    example
    chatroom.chatroom.updateInfo({
    chatroom: {
    "announcement": "announcement"
    },
    needNotify: true
    })

    // 接收方
    chatroom.on('chatroomMsg', (msg) => {
    console.log(msg.attach.type === 'updateChatroom')
    })

    Parameters

    Returns Promise<void>