hyperstack-org / hyperstack-org/hyperstack
Make a single API that will establish broadcast connections to the server
- Linguagem predominante
- JavaScript
- Estrelas
- 538
- Forks
- 41
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.