Flutter 带ssl的Darts web套接字连接问题

Flutter 带ssl的Darts web套接字连接问题,flutter,dart,websocket,Flutter,Dart,Websocket,我想在Flatter上使用web套接字。 我可以轻松地连接到非SSL API。但是,当使用SSL连接到API时,会出现以下错误 WebSocketChannelException:WebSocketChannelException: 握手异常:客户端握手错误(操作系统错误: 错误的版本号(tls\u record.cc:242)) 我尝试使用SecureSocket,但它不允许在SecureSocket中添加参数

我想在Flatter上使用web套接字。 我可以轻松地连接到非SSL API。但是,当使用SSL连接到API时,会出现以下错误

WebSocketChannelException:WebSocketChannelException: 握手异常:客户端握手错误(操作系统错误: 错误的版本号(tls\u record.cc:242))

我尝试使用SecureSocket,但它不允许在SecureSocket中添加参数