Closed royibernthal closed 1 year ago
replace ws:
by http:
and set the protocol to transporter to WebSocket
like in:
var uri = new Uri("http://localhost:8090");
socket = new SocketIOUnity(uri, new SocketIOOptions
{
Query = new Dictionary<string, string>
{
//{"token", "UNITY" }
}
,
Transport = SocketIOClient.Transport.TransportProtocol.WebSocket
});
and retry the emitting!
@itisnajim Thanks :) My bad it actually worked with the example above as well, the server was throwing a silent error which was extremely hard to notice.
However I now encountered a new issue: https://github.com/itisnajim/SocketIOUnity/issues/56
I'm trying to get socket.io to work in Unity.
On both the client (Unity) and the server (Node) I can see that it was able to connect successfully.
However, the server never receives the "message" event that I'm emitting upon connection.
I don't see any errors.
Here's the Node server: