Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when create new instance of SocketIoClient #21

Open
PhongPham0909 opened this issue Sep 29, 2022 · 2 comments
Open

Crash when create new instance of SocketIoClient #21

PhongPham0909 opened this issue Sep 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@PhongPham0909
Copy link

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

@PhongPham0909 PhongPham0909 added the bug Something isn't working label Sep 29, 2022
@HavenDV
Copy link
Owner

HavenDV commented Oct 1, 2022

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

@HavenDV
Copy link
Owner

HavenDV commented Oct 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants