[Problem/Question]
// Detailed description of issue.
I am getting The websocket connection to the server failed to establish. everytime i try to connect to sendbird sdk iOS .
func connectToSendBird(onCompletion: @escaping (SendbirdChatSDK.User?, FoodAPIError?) -> Void) {
guard let credentials = userSignUpInfo else {
onCompletion(nil, nil)
return
}
SendbirdChat.connect(userId: credentials.id, authToken: credentials.token, completionHandler: { user, error in
guard error == nil else {
self.analyticsManager.log(.errorOnDriverChat(
errorCode: String(error?.code ?? 0),
message: error?.localizedDescription ?? "",
context: "sendbird_connect",
userId: self.userId
))
onCompletion(nil, self.asFoodAPIError(error: error))
return
}
onCompletion(user, nil)
})
}
// What version of the SDK are you using?
4.5.0
[Reproduction Steps]
every time i connect to send bird sdk
[Frequency]
// How frequently is this issue occurring?
every time
[Current impact]
// How is this currently impacting your implementation?
Not able send and recieve driver chat.