Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SocketInterface

Index

Constructors

Methods

  • dispatch(eventName: string, request: SocketRequest): Promise<SocketResponse>
  • Standardize the way that socket messages are dispatched and their results are handled

    Parameters

    • eventName: string

      The socket event name being handled

    • request: SocketRequest

      Data provided to the Socket event

    Returns Promise<SocketResponse>

    A Promise which resolves to the SocketResponse

  • _handleError(err: Error): Error
  • Handle an error returned from the database, displaying it on screen and in the console

    Parameters

    • err: Error

      The provided Error message

    Returns Error