Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Presence

Index

Constructors

Private constructor

Properties

client

client: RedisClient

clientSub

clientSub: RedisClient

presenceKey

presenceKey: string = "redis-presence"

Static Private _instance

_instance: Presence

Accessors

Static Instance

Instance:

Methods

clean

  • clean(toDelete: any[]): void

get

  • get(connectionId: string): Promise<object>

init

  • init(redisIP: string, redisPort: number, redisPassword: string, presenceKey: string): void
  • Parameters

    • redisIP: string
    • redisPort: number
    • redisPassword: string
    • presenceKey: string

    Returns void

list

  • list(): Promise<any>

remove

  • remove(connectionId: string): Promise<string>
  • Removes a presence in redis

    Parameters

    • connectionId: string

    Returns Promise<string>

update

  • update(connectionId: string, meta: any): Promise<any>
  • Update client data here

    Parameters

    • connectionId: string
    • meta: any

    Returns Promise<any>

upsert

  • upsert(connectionId: string, meta: string): Promise<string>
  • Insert data into redis

    Parameters

    • connectionId: string
    • meta: string

    Returns Promise<string>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc