Class KavenAbstractSocket<TSocket, TMessage> Abstract
Constructors
constructor
- new KavenAbstractSocket<TSocket, TMessage>(socket: TSocket): KavenAbstractSocket<TSocket, TMessage>
Type parameters
Parameters
Accessors
Connected
DataReceived
Disconnected
Socket
Returns TSocket
Methods
Protected OnConnected
Returns boolean
Protected OnDataReceived
- OnDataReceived(data: TMessage): boolean
Parameters
Returns boolean
Protected OnDisconnected
- OnDisconnected(): boolean
Returns boolean
Protected Reconnect
- Reconnect(socket: TSocket): void
Parameters
Returns void
Abstract Send
- Send(msg: TMessage): void
Parameters
Returns void