socket.io-client-csharp | socket.io-client implemention for .NET | Socket library
kandi X-RAY | socket.io-client-csharp Summary
kandi X-RAY | socket.io-client-csharp Summary
socket.io-client implemention for .NET
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of socket.io-client-csharp
socket.io-client-csharp Key Features
socket.io-client-csharp Examples and Code Snippets
Community Discussions
Trending Discussions on socket.io-client-csharp
QUESTION
I have a NodeJS Server and a C# Unity Client. The NodeJS server sends an object to the C# client.
SERVER
...ANSWER
Answered 2020-Sep-30 at 10:15The JSON returned is an array with a single element, that element is an object with 2 properties - one of which is name
so I suspect he correct code to read that would be:
QUESTION
We are making our first small Unity Android game. App connects to our Socket.IO server and sends/receives some data. Everything works fine during development. We connect device via USB, use Unity Remote 5 on device, app connects to server and everything is great.
Then we build signed APK from Unity. We install APK to same device, app starts without problem, but socket.io communication doesn't work. At server side, I can see initial request to connect (which is successful), but then app won't connect to specified namespace, and it doesn't send requests to load data.
Are we making some obvious mistake? Do we have to specify something else to build working APK? We are only adding keystore to sign release. It seems that network communication is enabled in release APK, because we see some requests. We are Unity beginners, any help is appreciated.
We use Unity 2019.1.11f1. We use this socket.io client library: https://github.com/doghappy/socket.io-client-csharp
We have tried other library: https://github.com/Quobject/SocketIoClientDotNet but encountered same problem. Works during development, doesn't work in release APK. We have also tried 2 different Socket.IO server implementation, both (Flask and go-socket.io) behaved same.
EDIT: We have done more testing and found out, that when using Mono, everything works fine. But when we switch to IL2CPP, APK is broken. We have to use IL2CPP because of Play store (required 64-bit). Our current theory is too aggressive code stripping that removes some important part of code.
So, question should be, how to prevent code stripping with IL2CPP?
...ANSWER
Answered 2019-Nov-26 at 04:04Not sure if it's actually in any way related to your issues, but code stripping has a proper setting in the engine:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install socket.io-client-csharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page