hyperstack-org / hyperstack-org/hyperstack

Make a single API that will establish broadcast connections to the server

Open
#204 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
538
Forks
41
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.