Class KavenAbstractSocket<TSocket, TMessage>Abstract

Type Parameters

  • TSocket

  • TMessage

Hierarchy

  • KavenAbstractSocket

Constructors

  • new KavenAbstractSocket<TSocket, TMessage>(socket: TSocket): KavenAbstractSocket<TSocket, TMessage>
  • Type Parameters

    • TSocket

    • TMessage

    Parameters

    • socket: TSocket

    Returns KavenAbstractSocket<TSocket, TMessage>

Accessors

  • get Socket(): TSocket
  • Returns TSocket

Methods

  • OnConnected(): boolean
  • Returns boolean

  • OnDataReceived(data: TMessage): boolean
  • Parameters

    • data: TMessage

    Returns boolean

  • OnDisconnected(): boolean
  • Returns boolean

  • Reconnect(socket: TSocket): void
  • Parameters

    • socket: TSocket

    Returns void

  • Send(msg: TMessage): void
  • Parameters

    • msg: TMessage

    Returns void

Generated using TypeDoc