-
Notifications
You must be signed in to change notification settings - Fork 139
Unable to connect to the Flask-SocketIO server #421
Description
Hi,
I am new to C# and .NET. I installed SocketIoClient 4.0.1 to my project using NuGet.
I added code te print debug messages and have next debug print when I try to call SocketIoClient.ConnectAsync():
bug: SocketIOClient.Session.WebSocket.WebSocketSession[0]
[WebSocket?] 5
dbug: SocketIOClient.Protocol.WebSocket.WebSocketAdapter[0]
Sending Text message...
dbug: SocketIOClient.Protocol.WebSocket.WebSocketAdapter[0]
Sent Text message.
dbug: SocketIOClient.SocketIO[0]
Session connected
dbug: SocketIOClient.SocketIO[0]
Transport upgraded
fail: SocketIOClient.Protocol.WebSocket.WebSocketAdapter[0]
Failed to receive message
fail: SocketIOClient.Protocol.WebSocket.WebSocketAdapter[0]
System.ArgumentException: Value does not fall within the expected range.
at SocketIOClient.Protocol.WebSocket.WebSocketAdapter.ReceiveAsync(CancellationToken cancellationToken)
How can I know what is wrong?
I use .NET8.0