Page 2 of 2

Re: Browser version does not work in Chrome

Posted: Wed May 22, 2013 10:20 pm
by cazfi
I don't know how high priority we should make this, but firefox < 11 has WebSocket prefixed with Moz -> MozWebSocket. That bites at least users of just released Debian Wheezy, which has Firefox fork IceWeasel version 10.xx.

Re: Browser version does not work in Chrome

Posted: Thu May 23, 2013 6:55 pm
by brazilianldsjaguar
I've got similar problems, in both Chrome and Firefox.

- web browser version
Chrome Version 26.0.1410.64 m & FireFox 21
- operating system
Win 7 x64
- Internet connection speed
Pretty darn fast
- plugins installed in the browser
Chrome: "DoNotTrackMe" and "MeasureIt!"
Firefox: "DoNotTrackMe" and "EPUBReader"
- if you are connecting through a HTTP proxy
No
- if you have any problems with other HTML5 games which use websockets, eg http://rumpetroll.com/
No
- error messages in the Javascript console of your browser.
Chrome: WebSocket connection to 'ws://play.freeciv.org/civsocket' failed: Unexpected response code: 400
Firefox: Firefox can't establish a connection to the server at ws://play.freeciv.org/civsocket. @ http://play.freeciv.org/javascript-comp ... ient.js:80

Re: Browser version does not work in Chrome

Posted: Thu May 23, 2013 9:17 pm
by AndreasR
brazilianldsjaguar wrote:I've got similar problems, in both Chrome and Firefox.

- plugins installed in the browser
Chrome: "DoNotTrackMe" and "MeasureIt!"
Firefox: "DoNotTrackMe" and "EPUBReader"


Hi

Could you please try without DoNotTrackMe, MeasureIt and EPUBReader.
I would be interested in knowing if any of these is the cause of your problems.

Thanks! 8-)

Andreas

Re: Browser version does not work in Chrome

Posted: Thu May 23, 2013 9:58 pm
by brazilianldsjaguar
Gave it a try - disabled DoNotTrackMe and MeasureIt! in Chrome, and DoNotTrackMe and EPUBReader in FireFox. Same 'connection failed' messages as before in the console.

Not sure if I mentioned this earlier, but there's also a "Network error" error message that shows up on the screen - in either browser.

I also might mention I'm behind a firewall or two... although unless it's trying to use some crazy port (not 80), there shouldn't be any problems. I was able to connect, as you suggested, to http://rumpetroll.com/ just fine - no errors - but I don't know if its websocket implementation could be different than freeciv's.

Thanks,

Re: Browser version does not work in Chrome

Posted: Tue May 28, 2013 6:04 pm
by randscreen
FYI, I'm now able to start a game on iPhone 5 in Safari and Chrome.

Re: Browser version does not work in Chrome

Posted: Wed May 29, 2013 3:41 pm
by brazilianldsjaguar
Alright, I was able to get FreeCiv browser version to work. The solution was to use my home network. Apparently, where I'm at there's some firewalls in place that must be blocking the connection. Thanks!

Re: Browser version does not work in Chrome

Posted: Wed May 29, 2013 9:05 pm
by AndreasR
brazilianldsjaguar wrote:Alright, I was able to get FreeCiv browser version to work. The solution was to use my home network. Apparently, where I'm at there's some firewalls in place that must be blocking the connection. Thanks!


Great, glad you finally managed to get the game running! Do you know what kind of firewall could be the cause of the connection problems?

Now, what do you think of the game? What could be improved?


Andreas

Re: Browser version does not work in Firefox

Posted: Thu Jun 06, 2013 10:46 am
by calvin123
Hi,

I have problems with the web socket connection in Firefox after playing some turns:

- web browser version: Firefox 21.0
- operating system: Windows 7
- Internet connection speed: 2mbit
- plugins installed in the browser:
  • Adblock Plus
  • Download Helper
  • Facebook Disconnect
  • FeBe
  • GreaseMonkey
  • gTranslate
  • HttpsEverywhere
  • Leet Key
  • NoScript
  • Remove Cookies For Site
  • Yahoo Mail Notifier
- if you are connecting through a HTTP proxy: Nope
- if you have any problems with other HTML5 games which use websockets, eg http://rumpetroll.com/
No problems on tumpretroll and I can always make some turns, before the connection is closed.
- error messages in the Javascript console of your browser:
[12:05:56.220] js_breakpad reports error: SyntaxError: JSON.parse: unexpected character 80
[12:06:56.169] WebSocket connection closed.