Options
All
  • Public
  • Public/Protected
  • All
Menu

Singleton class For socket.io and express, graphql e.t.c Extending Redis database

Hierarchy

  • SocketServer

Index

Constructors

Private constructor

Properties

Private app

app: Application

Private connectedSocket

connectedSocket: any

Private io

io: Server

Private port

port: string | number

Private redisApp

redisApp: createClient = redis.createClient

Private server

server: Server

Private socketpub

socketpub: RedisClient

Private socketsub

socketsub: RedisClient

Static PORT

PORT: number = 3000

Static Private _instance

_instance: SocketServer

Accessors

Static Instance

Instance:

Methods

getApp

  • getApp(): Application

getIo

  • getIo(): Server

getSocket

  • getSocket(): Socket

init

  • Initialise SocketServer

    Parameters

    • __namedParameters: object
      • express: object
        • app: Application
        • port: number
      • redis: object
        • ip: string
        • Optional pass?: string
        • Optional port?: number

    Returns SocketServerOutput

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