Skip to content

Commit 33f3c23

Browse files
author
Marcus
committed
Add a listenToAll function the NullConnector.
Fixes #366
1 parent 4e0fece commit 33f3c23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/connector/null-connector.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ export class NullConnector extends Connector {
2424
return new NullChannel();
2525
}
2626

27+
/**
28+
* Listen for all events on the channel instance.
29+
*/
30+
listenToAll(callback: Function): NullChannel {
31+
return this;
32+
}
33+
2734
/**
2835
* Get a channel instance by name.
2936
*/

0 commit comments

Comments
 (0)