RocketChat / Rocket.Chat.js.SDK

Utility for apps and bots to interact with Rocket.Chat via DDP and/or API
MIT License
136 stars 94 forks source link

The library should not be singleton #118

Open 1valdis opened 3 years ago

1valdis commented 3 years ago

It should be possible to create scoped instances of driver and api. It also should be possible to configure dynamically such thing as URL. Currently it's read once from environment and there's no way (which I could find) to change it or supply via some method. This makes working with this library very suboptimal in modular systems like Nest.js.