Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "scripts/sendMessage"

Index

Functions

Functions

Const sendMessage

  • sendMessage(args: { message: string; roomId: string; timestamp: Date | string | number }): void
  • sendMessage Send user message to chat room.

    fires

    messagesent

    fires

    messagefailed

    see

    https://docs.livelike.com/docs/web-custom-analytics

    example
    sendMessage({message: 'Test message', roomId: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'})

    Parameters

    • args: { message: string; roomId: string; timestamp: Date | string | number }
      • message: string

        The message string

      • roomId: string

        The roomId of chatroom to send message to

      • timestamp: Date | string | number

        The optional sync time timestamp

    Returns void

Generated using TypeDoc