Open blenderino100 opened 2 years ago
Is there a line of code missing?
void Start()
{
var client = new SocketIO("http://localhost:3000/");
client.On("connection", socket => {
Debug.Log("test");
});
await client.ConnectAsync();
// ^^^^^^^^^^^^^^^
}
Thanks for the quick response!
Yes that was the problem!
Hi @blenderino100 , how did you get SocketIO working with Unity? I think our connection is not working since we are using an older version (2.x) of SocketIO, but the top plugin on NuGet by HeroWong's DLLs did not play nice with Unity. I do not think it is a problem with the code, we get a response from Unity saying that the connection is not open.
This is what we tried to install the DLLs from that didn't work: https://www.nuget.org/packages/SocketIOClient/
So here is what we actually used: https://www.nuget.org/packages/SocketIOClient.NetFx/
@jcortezzo Hi I create a new 2.0 .net and installed SocketIOClient build > after in console > dotnet publish and copied the new files to a unity project it works without errors
bros, I use this extersion to download the stuff in nuget in unity and it still shows if it has an update https://github.com/GlitchEnzo/NuGetForUnity
I created Unity Sample https://github.com/devprog-dev/UnitySocketIOPlugins
don't click link, just copy and paste on web browser
check it. referenced it here.
I created Unity Sample https://github.com/devprog-dev/UnitySocketIOPlugins
don't click link, just copy and paste on web browser
check it. referenced it here.
in my project it didn't work
I created Unity Sample https://github.com/devprog-dev/UnitySocketIOPlugins
don't click link, just copy and paste on web browser
check it. referenced it here.
Your plugins folder is all in Meta
Hello! I would like to ask for help. What could be the problem?
Unity Client
NodeJS server
I start both and for some reason there is no communication. What am I wrong about? Thank you in advance for your answer. Have a nice day!