Allow to fire onClose

This commit is contained in:
Alex Dima 2019-04-25 00:44:22 +02:00
parent 1277f16f5c
commit b16a3a206e

View file

@ -687,6 +687,10 @@ export class PersistentProtocol {
this._recvKeepAliveCheck();
}
public acceptDisconnect(): void {
this._onClose.fire();
}
private _receiveMessage(msg: ProtocolMessage): void {
if (msg.ack > this._outgoingAckId) {
this._outgoingAckId = msg.ack;