Can't connect with WebSockets = true?

Hi everyone,

Recently I decided to switch the project I am working on to use WebGL instead of having a client to download. So I switched the WebSockets variable under Network Info in the vanilla NetworkManager.

Unfortunately when I try to do so, the client never connects even if the timeouts have changed to larger values. I tried with 5.6.0f3, 2017.1.1f3 and 2017.1.2p3. I recall this worked fine in 5.6.3

Has anyone come across this or knows a work around to make it work?

Still looking for a solution or if this is a bug somehow (already submitted a report but didn’t hear back from Unity).

From what I can see you are just calling StartServer after supplying a port number. So basically it is like using the default Network Manager which I am doing.

Is this in 2017.1?

After a long discussion over a different thread in the forum I learned that when WebSocket gets activated you can’t connect over any exported game except WebGL. So either build the game for WebGL or other platforms and I have been testing using Standalone (since it is faster to build) which didn’t connect.

Thanks for the suggestions, it was just frustrating to learn this tidbit and I couldn’t find it anyone talking about it so I just assumed it worked with all builds.

Thanks!