NetCoreServer
NetCoreServer copied to clipboard
Doesn't work in Unity
If we use this from Unity, the server detects a connection from the client, and the client can send data to the server, but the server can't send data to the client.
This happens with a TCP connection.
My guess would be, that you tried calling a Unity method from another thread when you received data. Sadly on other threads errors are silent and won't show up in Unity's console.
I managed building a unity client for netcoreserver: https://github.com/JohannesDeml/NetCoreServerUnityClient It's still a bit rough on the edges, but it works as a proof of concept I guess :)
@ffMathy Cleaned up and documented the code, looks all good and works on localhost as well as for remote servers, so I see no problem in using NetCoreServer with a Unity client. Tested with Editor, Android, iOS and Windows. I made a small release to test the binaries yourself: https://github.com/JohannesDeml/NetCoreServerUnityClient/releases/tag/1.0
Even though the issue is a it older I hope it helps either you or others looking for server solutions :)
Hello, is there any lib for Websocket Unity?
Hello, is there any lib for Websocket Unity?
I only made sure TCP, UDP and SSL work for now. If you want to extend it, I'm happy to take PRs for the Websocket feature
So android confirmed working?
For TCP, UDP and SSL in Unity: Yes, I tested it back then with this repo: https://github.com/JohannesDeml/NetCoreServerUnityClient
I wouldn't see a reason that this does not work for a non unity build :)