I'm using Twilio programmable chat on swift and it takes the client up to 5 seconds to connect.
Here is the code:
let start = Date()
TwilioChatClient.chatClient(withToken: token, properties: nil, delegate: self) {
(result, chatClient) in
print("\(Date().timeIntervalSince(start)) seconds")
}
This prints values between 3.5 to 5 seconds.
After connecting, the other apis works pretty fast, for example sending message 0.2 sec.
Does that make sense?