Skip to content

Commit

Permalink
feat: support for custom connecters
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza authored Sep 14, 2019
1 parent 7b0a5ea commit 84a76cd
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 @@ -41,6 +41,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 84a76cd

Please sign in to comment.