Class KavenAbstractSocket<TSocket, TMessage>Abstract
Constructors
constructor
- new KavenAbstractSocket<TSocket, TMessage>(socket: TSocket): 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(): boolean
-
Returns boolean
Protected
OnDataReceived
- OnDataReceived(data: TMessage): boolean
-
Returns boolean
Protected
OnDisconnected
- OnDisconnected(): boolean
-
Returns boolean
Protected
Reconnect
- Reconnect(socket: TSocket): void
-
Returns void
Abstract
Send
- Send(msg: TMessage): void
-
Returns void