endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.27k stars 161 forks source link

Can't connect: Firefox can’t establish a connection to the server at ws://127.0.0.1:5003/unity_comunication #6

Open Phantomb opened 4 years ago

Phantomb commented 4 years ago

Hi,

I still have a different issue, now that I was able to create a build.

When starting the application, the websocket apparently is not able to establish a connection.

I tried both with 'ws' and 'wss' in the url, I'm not sure what the issue is or how to fix it.

I run index.html locally. Any ideas how to fix it? Thanks in advance

hikingdipankar commented 4 years ago

So you need to serve it with a web server, it won't run as a file-system HTML.