hyperstack-org / hyperstack-org/hyperstack
Make a single API that will establish broadcast connections to the server
- Langage dominant
- JavaScript
- Étoiles
- 538
- Forks
- 41
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.