HavenDV / H.Socket.IO

This is the Socket.IO client for .NET, which is based on ClientWebSocket, provide a simple way to connect to the Socket.IO server. The target framework is .NET Standard 2.0
MIT License
100 stars 15 forks source link

Crash when create new instance of SocketIoClient #21

Open PhongPham0909 opened 1 year ago

PhongPham0909 commented 1 year ago

Describe the bug

I write a function to create a new instance and register events: image

But have an exception: Object reference not set to an instance of an object exception image

I tried to fix that issue but I can't. Please help me investigate it. I think the root cause by your library because I just use the sample code. Platform: iOS - Xamarin

Steps to reproduce the bug

I can't reproduce it on my computer. I just use a third party and this third party logged exceptions.

Expected behavior

No response

Screenshots

No response

NuGet package version

1.2.7

Platform

No response

IDE

No response

Additional context

No response

HavenDV commented 1 year ago

Sorry, I am in the process of relocation, I will answer you in more detail when I can

HavenDV commented 1 year ago

My library internally uses the .net standard 2.0 System.Net.WebSockets.ClientWebSocket. I assume that these are problems with the implementation of this class for the Xamarin iOS platform on the .net side. The simplest thing I can offer you is to try the new net6.0-ios or MAUI in a simple test project