Fixes #10 Where the channel's read and write scopes are different. Introduced a "scopeKey" which is based on the action variable. Added a switch, so that if there are different actions in the future that need read/write scope keys, we can just add another case to that switch and it should automatically work.
If you want to solve this a different way, feel free. This is just what came to my mind.
Fixes #10 Where the channel's read and write scopes are different. Introduced a "scopeKey" which is based on the action variable. Added a switch, so that if there are different actions in the future that need read/write scope keys, we can just add another case to that switch and it should automatically work.
If you want to solve this a different way, feel free. This is just what came to my mind.