Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IListener

Classes which implement this interface can implement the following event functions

Hierarchy

  • IListener

Implemented by

Index

Methods

onConnected

  • onConnected(): void

onConnectionLost

  • onConnectionLost(): void

onDisconnected

  • onDisconnected(): void

onError

  • onError(error: string): void
  • Is called when an error occurred

    Parameters

    • error: string

      the error message

    Returns void

onMessage

  • onMessage(data: any): void
  • Is called when the client receives a message from the server

    Parameters

    • data: any

      the message data

    Returns void

onPacketSend

  • onPacketSend(packet: IPacket): void

Generated using TypeDoc