RocketChat / Rocket.Chat.js.SDK

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

Set up Livechat connections #78

Closed renatobecker-zz closed 5 years ago

renatobecker-zz commented 5 years ago

Since we started using the REST API approach in client-server communication, when a connection was closed on the client side, the guest status was no longer being updated. This PR adds a new method that will allow the server to configure the Livechat connections, handling theonClose event that will update the guest status when the connection is closed.