MediaSFU React Native
    Preparing search index...

    Function sendMessage

    • Sends a message to the specified room.

      Parameters

      • options: SendMessageOptions

        The options for sending the message.

        • member: string
        • islevel: string
        • OptionalshowAlert?: ShowAlert
        • coHostResponsibility: CoHostResponsibility[]
        • coHost: string
        • chatSetting: string
        • message: string
        • roomName: string
        • messagesLength: number
        • receivers: string[]
        • group: boolean
        • sender: string
        • socket: Socket

      Returns Promise<void>

      A promise that resolves when the message is sent.

      Will throw an error if the message count limit is exceeded.

      Will throw an error if the message, sender, or receivers are not valid.

      Will throw an error if the user is not allowed to send a message in the event room.

      launchMessages({
      updateIsMessagesModalVisible: (visible) => console.log("Modal visibility:", visible),
      isMessagesModalVisible: false,
      });