Flutter WebSocket works in web application but not in android emulator

222
  1. In my project WebSocket connection needs authentication
  2. In web application automatically pass cookies and authentication token in websocket connection
  3. But in Mobile Application we need to set cookies and authentication token manually

When I done this resolved my issue

Share:
222
Admin
Author by

Admin

Updated on January 01, 2023

Comments

  • Admin
    Admin over 1 year

    'final channel = WebSocketChannel.connect( Uri.parse('wss://echo.websocket.org'), );'

    1. can create and connect in web application but can't connect in android emulator
  • Admin
    Admin over 2 years
    As 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.