Forum General how to fix WebSocket connection error

Discussion and help relating to the PlayerIO JavaScript SDK

how to fix WebSocket connection error

Postby newhokm » July 1st, 2017, 3:08 pm

WebSocket connection to 'ws://gs50.playerio.com:[port]/' failed: Error in connection establishment: net::ERR_NAME_RESOLUTION_FAILED
why always i have this error
newhokm
 
Posts: 5
Joined: April 26th, 2015, 9:18 pm

Re: how to fix WebSocket connection error

Postby Henrik » July 2nd, 2017, 4:10 am

That's strange, but it means that your machine is failing to do a dns lookup of the host gs50.playerio.com.

What happens if you type "nslookup gs50.playerio.com" in a command prompt/terminal window on your machine?

You should get the result 108.178.27.114
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: how to fix WebSocket connection error

Postby newhokm » July 2nd, 2017, 1:17 pm

I programmed the game with action script, that is available in the following address https://hokm.bitballoon.com .
it's always OK but you can't open this on your mobile device.
so I programmed the game in javascript with ur new javascript sdk, that is available in the following address https://hokmplus.bitballoon.com.
it doesn't work in https mode , in http mode http://hokmplus.bitballoon.com Most of the times cant connect
newhokm
 
Posts: 5
Joined: April 26th, 2015, 9:18 pm

Re: how to fix WebSocket connection error

Postby newhokm » July 2nd, 2017, 6:31 pm

see this attach pls
Attachments
Capture.PNG
Capture.PNG (471.17 KiB) Viewed 18944 times
newhokm
 
Posts: 5
Joined: April 26th, 2015, 9:18 pm

Re: how to fix WebSocket connection error

Postby Henrik » July 2nd, 2017, 9:30 pm

I just tried to register and then login in my regular Chrome, and it worked fine, it established a websocket connection like it should.

The error your are seeing are coming from your local browser, which appears to be some sort of modified Chrome? Have you tried in Firefox or regular Chrome?
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: how to fix WebSocket connection error

Postby newhokm » July 2nd, 2017, 10:33 pm

this problem happend for most of my users in game not just for me ;tnx for ur helping <3 ; I am waiting for ur new update for javascript sdk
newhokm
 
Posts: 5
Joined: April 26th, 2015, 9:18 pm

Re: how to fix WebSocket connection error

Postby Henrik » July 3rd, 2017, 4:47 am

Well, are all of those users running the same browser? And what browser is it that you're running?

As far as I understand the error you're getting, it's your browser telling you that it doesn't support websockets. Websockets are an absolute requirement for the multiplayer in the PlayerIO JS SDK, so there's not going to be an update that fixes your problem.

Which is why I'm asking if you get the same error in another browser, like FireFox? If you don't, then you know that it's your browser that is the problem. I might be wrong about what that error code means, but either way I would really like to know what browser you are using so I can test it myself and reproduce it.
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: how to fix WebSocket connection error

Postby newhokm » July 3rd, 2017, 7:36 pm

this screen shot taken from google analytics . most of users and android users use chrome and latest update ;
its ok in flash player mode ; the problem happen in javascript mode ; i think maybe websocket have bug;
Attachments
Capture.JPG
Capture.JPG (19.44 KiB) Viewed 18892 times
newhokm
 
Posts: 5
Joined: April 26th, 2015, 9:18 pm


Return to General



cron