Class KavenAbstractSocket<TSocket, TMessage>Abstract
Constructors
constructor
- new KavenAbstractSocket<TSocket, TMessage>(socket): KavenAbstractSocket<TSocket, TMessage>
Accessors
Connected
- get Connected(): IKavenLiteEvent<TSocket, this>
DataReceived
- get DataReceived(): IKavenLiteEvent<TMessage, this>
Disconnected
- get Disconnected(): IKavenLiteEvent<TSocket, this>
Socket
- get Socket(): TSocket
Returns TSocket
Methods
Protected
OnConnected
- OnConnected(): Promise<number>
Returns Promise<number>
Protected
OnDataReceived
- OnDataReceived(data): Promise<number>
Returns Promise<number>
Protected
OnDisconnected
- OnDisconnected(): Promise<number>
Returns Promise<number>
Protected
Reconnect
- Reconnect(socket): void
Returns void
Abstract
Send
- Send(msg): void
Returns void