sendKeepAlive method
Implementation
Future<void> sendKeepAlive() {
WsKeepAlive requestPacket = WsKeepAlive();
requestPacket.messageType = Type.keepalive;
Completer completer = Completer<void>();
_socketConnection.createCollectorAndSend(
requestPacket, Type.ack, completer);
return completer.future;
}