Hi, I have created a connection container in my custom AuthProvider and keeping all created connections in it after creation. With this I am able to retrieve all connections for a user and also able to get the ConnectionID, which I want to use for shared connection.
Now how to get an event when user closes a connection so that I remove closed connection from my container as well? Regards, Umesh -----Original Message----- From: Nick Couchman <[email protected]> Sent: Wednesday, December 25, 2019 6:48 AM To: [email protected] Subject: Re: Connections for n user On Tue, Dec 24, 2019 at 7:06 AM Umesh Bhatt <[email protected]> wrote: > Hi, > > I am using custom authentication, and I want to get > ConnectionDirectory to list all existing connections for a user. > I am seeing in SimpleUserContext has ConnectionDirecotory but it > always has current connection not list of all existing connections for > authenticated user. > I'm a little unclear what the difference is between "current connection" and "list of all existing connections"? > Is a newly created connection not updated to this connection container? > The connection directory is cached by the AngularJS front-end, so sometimes there is a refresh required in order to get the newest information. For example, if I have two tabs open in my browser and I edit connections in one of the tabs, I have to click the Reload button in the browser to get the connections refreshed in the other tab - simply connecting to another connection and going back home, or going to Settings and back home, won't load the new connection. > Do I need to create and maintain my custom container for all created > connections? > > I'm not sure what you mean by this? -Nick
