-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Our rails server occasionally returns the following response
{"type":"disconnect","reason":"unauthorized","reconnect":false}"
This will cause the code to crash on line 112 of JSONSerializer.swift:
return Message(channelIdentifier: channelIdentifier!, // <<-- there is no "identifier" member in the response, so channelIdentfier will be nil
actionName: messageActionName,
messageType: MessageType.message,
data: messageValue,
error: messageError)
Recommend that the code be fixed to not force-unwrap channelIdentifier and treat the disconnect the same as a reject
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels