Skip to content

Unable to connect to the Flask-SocketIO server #421

@MikeEmbedded

Description

@MikeEmbedded

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions