Open dinomov opened 3 years ago
This looks like you are trying to run it on Xamarin, is that correct? Are you able to connect to the server from standard .NET Core console application? Also are you able to access the socket.io server to see some logs there? This looks like a generic error when either server is not running or not accessible.
@LadislavBohm yes it is xamarin app, I will try to run it from standard .NET console application to see if it works, I will comment here about result later.
we were using this https://github.com/Quobject/SocketIoClientDotNet socket.io client on our xamarin app, but it is really old and recently on Android it became not stable, this is why we are now considering other socket.io clients in C# for our Xamarin app. server side socket.io version is 1.7.4. what do you suggest?
I haven't tested the library on Xamarin at all so I can't really help with that. However if you have an access to server then it could help with debugging. For example in this library I am not doing a standard socket.io protocol resolution and go straight for websocket connection (no long polling support). I had no issues connecting like that to socket.io servers but you could check whether your server supports websockets.
please see attached sample console application, it give following error even such package is added
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Websocket.Client, Version=4.3.0.0, Culture=neutral,
Sorry for the delay, but when I test your code on Windows it runs fine except it doesn't connect to remote server with this error:
However I was not able to connect to your server even from javascript client so I would recommend to first verify that it works from JS.
Hi, I am getting this error 'Unable to connect to the remote server'
below full log