You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to connect a Flutter application to a server that I developed in .NET Core. After establishing the connection, the application disconnects when it receives a message. I have been unable to find a solution. When I connect to the server using Postman, Hercules, or other client applications, there are no issues. However, I cannot establish a connection with this package.
There may be a mismatch during the handshake process. It is possible that the header is not coming correctly due to the parsing structure ("\r\n").
I am trying to connect a Flutter application to a server that I developed in .NET Core. After establishing the connection, the application disconnects when it receives a message. I have been unable to find a solution. When I connect to the server using Postman, Hercules, or other client applications, there are no issues. However, I cannot establish a connection with this package.
There may be a mismatch during the handshake process. It is possible that the header is not coming correctly due to the parsing structure ("\r\n").
Errors:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: WebSocketChannelException: WebSocketChannelException: HttpException: Invalid request method, uri = http://127.0.0.1:8080
Below is a simple example of the server application and a code snippet for a basic client in Flutter:
Server code:
Client:
Please note that the provided code snippets are for reference purposes, and the issue you are facing may require further analysis and debugging.
The text was updated successfully, but these errors were encountered: