【发布时间】:2022-10-21 14:24:42
【问题描述】:
我正在使用颤振web_socket_channel包与服务器通信。 WebSocketChannel 类不采用标头参数。
factory WebSocketChannel.connect(Uri uri, {Iterable<String>? protocols}) =>
platform.connect(uri, protocols: protocols);
当使用IOWebSocketChannel 传递标头时,我在网络中得到Unsupported operation: Platform._version,就像给定的here 一样。它在 Android 和 iOS 上运行良好。
【问题讨论】: