Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "scripts/messageCount"

Index

Functions

Functions

Const messageCount

  • messageCount(roomId: string, time?: { since: string | number | Date }): Promise<IMessageCount>
  • messageCount Returns array of message objects

    async
    throws

    {Error}

    example
    messageCount('c1f6082c-f7b9-4d1e-b64e-9071a3860ffc', {since: "2020-04-16T16:29:39.158Z"}).then(response => console.log(response.count))

    Parameters

    • roomId: string
    • Optional time: { since: string | number | Date }
      • since: string | number | Date

        Time to get messages since

    Returns Promise<IMessageCount>

    Array of message objects

Generated using TypeDoc