We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1eda59d + 84a76cd commit d7d85b1Copy full SHA for d7d85b1
src/echo.ts
@@ -44,6 +44,8 @@ export default class Echo {
44
this.connector = new SocketIoConnector(this.options);
45
} else if (this.options.broadcaster == 'null') {
46
this.connector = new NullConnector(this.options);
47
+ } else if (typeof this.options.broadcaster == 'function') {
48
+ this.connector = new this.options.broadcaster(this.options);
49
}
50
51
0 commit comments