Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FrontendSession

Frontend session for frontend server.

Hierarchy

  • EventEmitter
    • FrontendSession

Index

Constructors

constructor

Properties

Private ___sessionService__

___sessionService__: SessionService

Private ___session__

___session__: Session

abind

abind: function = utils.promisify(this.bind)

Type declaration

    • (arg1: T1): Promise<TResult>
    • Parameters

      • arg1: T1

      Returns Promise<TResult>

apush

apush: function = utils.promisify(this.push)

Type declaration

    • (arg1: T1): Promise<TResult>
    • Parameters

      • arg1: T1

      Returns Promise<TResult>

apushAll

apushAll: function = utils.promisify(this.pushAll)

Type declaration

    • (): Promise<TResult>
    • Returns Promise<TResult>

aunbind

aunbind: function = utils.promisify(this.unbind)

Type declaration

    • (arg1: T1): Promise<TResult>
    • Parameters

      • arg1: T1

      Returns Promise<TResult>

frontendId

frontendId: string

id

id: number

settings

settings: any

uid

uid: string

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

bind

  • bind(uid: UID, cb: function): void
  • Parameters

    • uid: UID
    • cb: function
        • (err?: Error, result?: void): void
        • Parameters

          • Optional err: Error
          • Optional result: void

          Returns void

    Returns void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

export

  • export(): object

get

  • get(key: string): any

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

on

  • on(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

push

  • push(key: string, cb: function): void
  • Parameters

    • key: string
    • cb: function
        • (err?: Error, result?: void): void
        • Parameters

          • Optional err: Error
          • Optional result: void

          Returns void

    Returns void

pushAll

  • pushAll(cb: function): void
  • Parameters

    • cb: function
        • (err?: Error, result?: void): void
        • Parameters

          • Optional err: Error
          • Optional result: void

          Returns void

    Returns void

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

set

  • set(key: string, value: any): void

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

unbind

  • unbind(uid: UID, cb: function): void
  • Parameters

    • uid: UID
    • cb: function
        • (err?: Error, result?: void): void
        • Parameters

          • Optional err: Error
          • Optional result: void

          Returns void

    Returns void

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number