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 還沒有評估資料。