<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[A strange error...]]></title><description><![CDATA[<p>I am having issues using express as the server for node.js:<br />
&quot;?colyseusid=&quot; keeps getting appended to the url and Firefox complains.<br />
<code>Firefox can’t establish a connection to the server at ws://localhost:3000/?colyseusid=.</code></p>
]]></description><link>http://discuss.colyseus.io/topic/128/a-strange-error</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 18:53:00 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/128.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Aug 2018 03:13:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to A strange error... on Invalid Date]]></title><description><![CDATA[<p>I am having issues using express as the server for node.js:<br />
&quot;?colyseusid=&quot; keeps getting appended to the url and Firefox complains.<br />
<code>Firefox can’t establish a connection to the server at ws://localhost:3000/?colyseusid=.</code></p>
]]></description><link>http://discuss.colyseus.io/post/426</link><guid isPermaLink="true">http://discuss.colyseus.io/post/426</guid><dc:creator><![CDATA[Project-Magenta]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to A strange error... on Invalid Date]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/161">@Project-Magenta</a>, are you sure the server is running on port <code>3000</code>?</p>
]]></description><link>http://discuss.colyseus.io/post/427</link><guid isPermaLink="true">http://discuss.colyseus.io/post/427</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to A strange error... on Invalid Date]]></title><description><![CDATA[<p>Hi guys, I'm having the same issue and it's only in FF:</p>
<p>Firefox can’t establish a connection to the server at ws://192.168.33.77:8080/?colyseusid=JWr9PJf4t.<br />
colyseus.js:693:51<br />
Firefox can’t establish a connection to the server at ws://192.168.33.77:8080/SQRRPk2PZE?colyseusid=JWr9PJf4t&amp;requestId=1. colyseus.js:693:51<br />
Possible causes: room's onAuth() failed or maxClients has been reached. colyseus.js:2967:13</p>
<p>if I open the same page in Chrome everything works fine, below you can see the movements, but when I try with FF you can see a onDispose is &quot;automatically&quot; happening:</p>
<p>GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
GameRoom received message from YLv3kAiNLO : { x: 1 }<br />
Dispose GameRoom<br />
GameRoom created! { requestId: 1, clientId: 'JWr9PJf4t', sessionId: 'I6M20a_D7' }<br />
Dispose GameRoom</p>
<p>Same code was working a few hours ago.<br />
Any clues?</p>
]]></description><link>http://discuss.colyseus.io/post/455</link><guid isPermaLink="true">http://discuss.colyseus.io/post/455</guid><dc:creator><![CDATA[dpastorini]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to A strange error... on Invalid Date]]></title><description><![CDATA[<p>After a few FF restarts it started to work without modified a single line.<br />
The same happens with IE.<br />
Still not a clue about what caused the issue :(</p>
]]></description><link>http://discuss.colyseus.io/post/456</link><guid isPermaLink="true">http://discuss.colyseus.io/post/456</guid><dc:creator><![CDATA[dpastorini]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to A strange error... on Invalid Date]]></title><description><![CDATA[<p>OK! FINALLY FOUND THE ISSUE!</p>
<p>The short-temporal-fix:<br />
1 - Open FF and go to about:config<br />
2 - Look for network.websocket.max-connections<br />
3 - Set the number as high as you like :P at some point you will probably hit the issue again.</p>
<p>The long-story:</p>
<ul>
<li>Doing some research found the following: <a href="http://websocketstest.com/" rel="nofollow">http://websocketstest.com/</a><br />
In my case websockets in FF were mark as supported but every port seems to be closed and not a single connection was stablished. In CH everything is opened and working.</li>
<li>At this point I've realized that for sure it was something in the client and I've started to think in a weird case where FF is reaching a limit in the WebSocket connections. Didn't know this was possible....</li>
<li>Keep doing some research on the issue and found a post that says something like: &quot;https:// to ws:// is disallowed by default on firefox&quot;, in the same thread says that could be fixed by going to firefox's about:config and toggling network.websocket.allowInsecureFromHTTPS but didn't worked for me.</li>
<li>So I've started to do some tests by changing the FF configurations, first tried by changing other configs like &quot;network.websocket.delay-failed-reconnects&quot; but didn't worked. And there it was! &quot;network.websocket.max-connections&quot; had a 200 value, so I've changed it to 201, and after refresh the App it finally worked. There are also other configurations there like &quot;network.websocket.timeout.close&quot;, but I really don't want to change any of these to fix the issue (not even the max-connections value), because I don't think that's a fix but more of a hack to avoid the issue.</li>
</ul>
<p>Now... the real issue seems to be that FF is keeping all the connections opened after you refresh the browser.<br />
One thing to note is that even FF keep the &quot;connection&quot; as &quot;active&quot;, the colyseus monitor show up how the user connects and disconnects.<br />
An easy way to test this is by connecting to any app open the config in a new tab and set the connections limit to 2, then refresh the browser y after the second refresh you won't be able to connect anymore.<br />
I'll be still digging on this to find a final fix but maybe is just something I'm setting in my app?<br />
I'm using the very simple &quot;state&quot; case from the colyseus-examples.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a> any clues?</p>
<p>Thanks in advance!</p>
]]></description><link>http://discuss.colyseus.io/post/459</link><guid isPermaLink="true">http://discuss.colyseus.io/post/459</guid><dc:creator><![CDATA[dpastorini]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>