Swift Twilio的可编程聊天客户端连接缓慢

Rot*_*tem 5 twilio swift twilio-api twilio-programmable-chat

我正在快速使用Twilio可编程聊天,并且客户端最多需要5秒钟才能连接。

这是代码:

let start = Date()

TwilioChatClient.chatClient(withToken: token, properties: nil, delegate: self) {
                (result, chatClient) in

                print("\(Date().timeIntervalSince(start)) seconds")

            }
Run Code Online (Sandbox Code Playgroud)

这将打印3.5到5秒之间的值。

连接后,其他api的运行速度非常快,例如发送消息0.2秒。

那有意义吗?