You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client=newClient("http://localhost:1337");client.Opened+=SocketOpened;client.Message+=SocketMessage;client.SocketConnectionClosed+=SocketConnectionClosed;client.Error+=SocketError;Debug.Log("Client set up, connecting..");client.On("message", data =>{Debug.Log("Message received!");});client.Connect();
The text was updated successfully, but these errors were encountered:
I can confirm that after calling .Connect() on the client, a handshake does occur, but the client shows as connecting still and never seems to progress.
My issue was insanely silly. When my server bound to "localhost" (Both my Hapi and Express versions), it was apparently binding to an interface that wasn't connected to the same "localhost" as my Unity app. Even when I updated my unity app to connect to my local ip, it still refused to work. When I bound my Socket.IO server to my IP, it suddenly worked which led to me to find that i had vmware virtual interfaces (for Workstation) that were interfering and when I disabled them OR bound my server to a particular IP, the client would then connect so for me this turned out to be a Windows/Networking/Node issue which I've not seen before even though my regular workstation also has vmware workstation on it.
I am struggling to get this working, I only received "handshake authorized" in my server, and socket opened event does not fire.
Server:
Unity client:
The text was updated successfully, but these errors were encountered: