hyperstack-org / hyperstack-org/hyperstack
Make a single API that will establish broadcast connections to the server
- 主要语言
- JavaScript
- 星标
- 538
- 派生
- 41
- PR 合并指标
- 30 天内没有已合并 PR
描述
If you want to dynamically log a user in, without reloading a page, its not so easy.
First you have to figure out which connections are possible, and then call `Hyperstack::Application.connect` for each one,
then you have to reset the `acting_user_id` by setting the client drivers options hash `ClientDrivers.opts[:acting_user_id] = ...`
Its pretty ugly.
Login's are always going to be done via a ControllerOp, so the nicest way to implement this would be to add a class method to the ControllerOp class called `update_connections!` that could be called after the last step that would take care of things internally to update the connections on successful completion of the ControllerOp.
贡献指南
评估
这个 Issue 还没有评估数据。