0

我是 Apollo 的新手,并尝试在 Android 客户端中使用 apollo-android (v2.5.5) 连接到需要 wss url 的服务器。问题是我无法指定 wss url,因为 ApolloClient 的 serverUrl 是一个 HttpUrl,它在尝试解析 wss url 字符串时会导致 NullPointerException。

(我确实注意到 iOS 和 nodejs 客户端可以指定 wss url)

这应该如何工作?

4

0 回答 0