Skip to content

Commit

Permalink
Merge pull request #247 from ricardogobbosouza/patch-2
Browse files Browse the repository at this point in the history
feat: support for custom connectors
  • Loading branch information
taylorotwell authored Sep 14, 2019
2 parents 1eda59d + 84a76cd commit d7d85b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export default class Echo {
this.connector = new SocketIoConnector(this.options);
} else if (this.options.broadcaster == 'null') {
this.connector = new NullConnector(this.options);
} else if (typeof this.options.broadcaster == 'function') {
this.connector = new this.options.broadcaster(this.options);
}
}

Expand Down

0 comments on commit d7d85b1

Please sign in to comment.