Exercícios
This PR consists of the addition of two features (and packages) to Rocket.Chat
Client Commands is the name given to a solution created to allow the Rocket.Chat server to trigger actions in subscriber clients (bots and possibly other websocket clients). This is handled at the adapter and/or SDK level, not by final users (e.g. normal bot developers).
They are better explained here
I'd like to introduce a new utility called Client Commands, a solution created to allow the Rocket.Chat server to trigger actions in subscriber clients (bots and possibly other websocket clients). This is handled at the adapter and/or SDK level, not by final users (e.g. normal bot developers).
Bots subscribe to a message stream and respond to message events, but there's no way for the server to prompt them to do anything other than that.
In order to provide a range of new management features for administrating bot clients, getting data or triggering any non message response action, we need to send data to be interpreted by the client as a command. Such data, identified here by ClientCommands, could not be sent through the normal message stream, because:
- a) it would need hack workarounds to filter commands from normal message data
- b) it would be kept forever, bloating message collection storage
This text is meant to explain Client Commands, a solution created to trigger actions in bot clients, more specifically in the SDK and the adapter.
The name Client Commands was used because Bot Commands is ambiguous (it can mean text commands sent as a message) and besides that, even though there currently isn't a need or use for it, they can be used to send commands to any kind of custom client.
Client in this text means the adapter and/or SDK used by the bot. The ClientCommands will not be handled by final users (e.g. normal bot developers).
"Improve the integration of bots on Rocket.Chat" proposal for Google Summer of Code 2018
- Name: Mikael Mello
- Education: 3rd year student of Computer Science at University of Brasilia
- Location: Brasilia, Brazil
- Email: [email protected]
- Homepage: https://github.com/mikaelmello