Skip to content

Commit 5428322

Browse files
committed
Added pause / resume functionality to zongji listener
1 parent 6ee295c commit 5428322

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

+8
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ ZongJi.prototype.stop = function () {
284284
});
285285
};
286286

287+
ZongJi.prototype.pause = function () {
288+
this.connection.pause();
289+
};
290+
291+
ZongJi.prototype.resume = function () {
292+
this.connection.resume();
293+
};
294+
287295
// It includes every events by default.
288296
ZongJi.prototype._skipEvent = function (name) {
289297
const includes = this.filters.includeEvents;

0 commit comments

Comments
 (0)