I have an adapter which works over websockets. In case the connection is lost, I would like to either notify the login controller, that it needs to authenticate again on the next request, or I would like to have the adapter check if the login controller has a token persisted, which may be used to authenticate again. Is there any way I can access the controller from the adapter? Or is there a way to at least notify the controller of a sudden event (connection lost) from the adapter?
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How do I invoke a controller action from the adapter?
|
3 | 1970 | February 12, 2015 | |
Getting Controller properties from Adapters | 12 | 3370 | July 5, 2015 | |
Async field in Ember adapter | 3 | 561 | March 10, 2021 | |
Ember Websocket and Permissions
|
2 | 1291 | August 1, 2015 | |
Adapter With dependency from another Model | 2 | 1221 | June 30, 2013 |