Options
All
  • Public
  • Public/Protected
  • All
Menu
class
classdesc

Consists of services frequently used around different classes

Hierarchy

  • commonService

Index

Methods

Static addedUsersSocketIds

  • addedUsersSocketIds($user: any): Promise<any[]>
  • function

    addedUsersSocketIds

    description

    Returns socketIds of all users added to a particular user's list

    Parameters

    • $user: any

      User details

    Returns Promise<any[]>

    An array of socket ids

Static lastMessage

  • lastMessage(groupId: any): Promise<string>
  • function

    lastMessage

    description

    Shows the last message sent in a particular conversation

    Parameters

    • groupId: any

      ID of the conversation

    Returns Promise<string>

    Returns a message string

Static usersUnreadMessagesCount

  • usersUnreadMessagesCount(): Promise<any>
  • function

    usersUnreadMessagesCount

    description

    Counts the number of unread messages of a particular user for all conversations he has had

    Returns Promise<any>

    Returns an array of objects containg all groups with unread messages count

Generated using TypeDoc