Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KavenAbstractSocket<TSocket, TMessage> Abstract

Type parameters

  • TSocket

  • TMessage

Hierarchy

  • KavenAbstractSocket

Index

Constructors

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

    • TSocket

    • TMessage

    Parameters

    • socket: TSocket

    Returns KavenAbstractSocket<TSocket, TMessage>

Accessors

  • Returns IKavenLiteEvent<TSocket, this>

  • Returns IKavenLiteEvent<TMessage, this>

  • Returns IKavenLiteEvent<TSocket, this>

  • 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