Skip to content

Conversation

@NicosKaralis
Copy link

To solve issue #55

@NicosKaralis NicosKaralis changed the title Fixed headers setter Fixed headers setter and channel uid Nov 28, 2018
Signed-off-by: Nicos Karalis <nicoskaralis@me.com>
//if identifier isn't empty, fetch the first value as the channel unique identifier
if let dictionary = identifier?.first {
channelUID = dictionary.value as! String
if let dictionary = identifier, dictionary.count > 1 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you ignore the case when dictionary.count == 1 ?

Signed-off-by: Nicos Karalis <nicoskaralis@me.com>
kaomte added a commit to tekkinnovations/ActionCableClient2 that referenced this pull request Jan 2, 2021
- General fixes so that it compiles under XCode 12.0.1
- Applied fix for unique channel identifiers from here:
  danielrhodes/Swift-ActionCableClient#56
- Use sorted keys in JSON serialization for consistent serialization of
  identifier field.
- Use Websocket delegate callbacks instead of blocks.
- Adapted to new version of Starscream 4.0.4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants