I am trying to develop an app which supports three platforms Android, Ios and Web and I have a socket implementation in the app, for socket I am using web_socket_channel 1.1.0. But for web I have to use HtmlWebSocketChannel class which is not working in android or ios build and for android or ios I have to use IOWebSocketChannel which is not working in web build and give compile-time error.
For Web
HtmlWebSocketChannel.connect(Uri.parse(strong text'wss://echo.websocket.org'))
For Mobile build
IOWebSocketChannel.connect(Uri.parse('wss://echo.websocket.org')),