Closed szmarczak closed 5 years ago
The current implementation is bad because it requires another array for all sessions. Instead, we can move to something like this:
this.freeSessions = {
[options]: [session]
};
To connect we need to do:
this.freeSessions[options].filter(session => {
return session.originSet.includes(origin);
})
We get an array of sessions we can use.
Moved to #21
Fixes #17