Skip to content

Commit 928957f

Browse files
committed
Subscribe to the renamed transport events
1 parent c5554cc commit 928957f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/transport-observer.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ const TransportObserver = Class(
4848
transport.on("onBulkPacket", this.onBulkPacket);
4949
transport.on("startBulkSend", this.startBulkSend);
5050
transport.on("onClosed", this.onClosed);
51+
52+
transport.on("packet", this.onPacket);
53+
transport.on("bulkpacket", this.onBulkPacket);
54+
transport.on("startbulksend", this.startBulkSend);
55+
transport.on("close", this.onClosed);
5156
},
5257

5358
destroy: function() {
@@ -59,6 +64,11 @@ const TransportObserver = Class(
5964
transport.off("onBulkPacket", this.onBulkPacket);
6065
transport.off("startBulkSend", this.startBulkSend);
6166
transport.off("onClosed", this.onClosed);
67+
68+
transport.off("packet", this.onPacket);
69+
transport.off("bulkpacket", this.onBulkPacket);
70+
transport.off("startbulksend", this.startBulkSend);
71+
transport.off("close", this.onClosed);
6272
},
6373

6474
// Connection Events

0 commit comments

Comments
 (0)