Flutter WebSocket works in web application but not in android emulator
222
- In my project WebSocket connection needs authentication
- In web application automatically pass cookies and authentication token in websocket connection
- But in Mobile Application we need to set cookies and authentication token manually
When I done this resolved my issue
Author by
Admin
Updated on January 01, 2023Comments
-
Admin over 1 year
'final channel = WebSocketChannel.connect( Uri.parse('wss://echo.websocket.org'), );'
- can create and connect in web application but can't connect in android emulator
-
Admin over 2 yearsAs it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.