Options
All
  • Public
  • Public/Protected
  • All
Menu

External module Socket

Index

Functions

Const action

  • action(payload: any): void

Const actionBatch

  • actionBatch(payload: any): void

Const emit

  • emit(request: any, payload: any): void
  • Events type:

    • action => an action that will be queued.
    • actionBatch => a list of actions. Each action will be executed only if the previous action is a success.
    • update => an immediate action, with no queue.

    Returns: each event return an object that indicate : the result (boolean), the accomplished steps (batch only), and a message (if errors or string formating)

    Parameters

    • request: any
    • payload: any

    Returns void

Const socketActionMovement

  • socketActionMovement(mat: number, movement: Direction): object

Const socketActionMovements

  • socketActionMovements(mat: number, movements: Direction[]): object

Const socketUpdateMotd

  • socketUpdateMotd(mat: number, message: string): object

Const startReceiver

Const update

  • update(payload: any): void

Generated using TypeDoc