pusher-js-mock
pusher-js-mock copied to clipboard
On presence channels Me and MyId values are always the values for the last user to join the channel
hey @nikolalsvk Thank you very much for this library. I appreciate your work!!
I am having a problem on my tests when I try to use the me or myId values on presence channels. Their values always match the values of the last member to join a channel, this is true even when this member leaves the channel.
My guess is that the channel object is shared by all clients so when a new client joins it overwrites it's data to the presence channel but this inadvertently overwrites the individual information that each client should have on the presence channel.