Swift-ActionCableClient icon indicating copy to clipboard operation
Swift-ActionCableClient copied to clipboard

Problem with unconfirmed list of channels

Open mbutan opened this issue 8 years ago • 1 comments

Hey,

the problem is related to unsubscribed channels which from some server or others reasons couldn't be subscribed (without any confirmation). If the channel's event ChannelEventsChannel appends unconfirmedChannels list cannot be released properly and is returning all the time. I suggest to release this array when unsubscribe() is called.

mbutan avatar Jan 27 '17 07:01 mbutan

I think the issue resides in channels being identified by their name property. Another solution I would see is either specify the identifier to the Channel in the channels property of the ActionCableClient, or do the identification by default on its identifier dictionary passed at the create: function. Either way, they don't need to be identified or have only the current option of being identified by their name property. Cause on the server you connect to the same class name, so all channels will have the same name. I'm not sure if I made myself clear, @danielrhodes. If I didn't, I can further develop.

danipralea avatar Feb 03 '17 09:02 danipralea