Closed lokkirill closed 2 years ago
There also was an issue with channel disconnect: it couldn't disconnect because of entity refs
increments in one Entity instance because of this Hub entity key issue - so on channel.disconnect()
entry's refs
value was 2
and after unmark()
it still wasn't isFree()
Hi!
Small problem description: We have two channels in our projects now:
NotificationChannel
andConversationChannel
. I've faced a problem with parallel subscriptions to both of this channels on page loading on messages page.After some debug I realized, that for both of channel entries Hub uses same key:
[object Object]
:D So in this PR I've added simple key generation (stringified object of channel identifier and params) and it even must be uniq.Also added new test case