Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TCMClient

Client for TWS (Teambition Web Service) cloud messaging service..

Hierarchy

  • TCMClient

Index

Constructors

constructor

Properties

Private _client

_client: TCMMethods

Methods

batchSubscribe

  • batchSubscribe(body: any): Promise<__type>
  • Parameters

    • body: any

    Returns Promise<__type>

getUserClients

  • get online info for given user.

    Parameters

    • userId: string

      user ID.

    Returns Promise<UserClients>

heartBeat

send

  • send(body: Message[]): Promise<__type>
  • send one or more messages.

    Parameters

    Returns Promise<__type>

sign

  • sign(userId: string, source: string): Promise<Token>
  • get a TCM token for given user.

    Parameters

    • userId: string

      user ID.

    • source: string

      client label.

    Returns Promise<Token>

subscribe

  • subscribe(topic: string, sessionId: string): Promise<__type>
  • subscribe a topic with given sessionId.

    Parameters

    • topic: string

      message topic.

    • sessionId: string

      user session ID.

    Returns Promise<__type>

unsubscribe

  • unsubscribe(topic: string, sessionId: string): Promise<__type>
  • unsubscribe a topic with given sessionId.

    Parameters

    • topic: string

      message topic.

    • sessionId: string

      user session ID.

    Returns Promise<__type>

Generated using TypeDoc