<?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[Websocket not connecting]]></title><description><![CDATA[<p>client</p>
<pre><code class="language-js">import * as Colyseus from &quot;colyseus.js&quot;;

var host = (window.document.location.host || &quot;localhost&quot;).replace(/:.*/, '');
var client = new Colyseus.Client('ws://' + host + ':2657');
</code></pre>
<p>server: <a href="https://github.com/gamestdio/colyseus-examples/blob/master/index.ts" rel="nofollow">https://github.com/gamestdio/colyseus-examples/blob/master/index.ts</a></p>
<p>Error ( using Chrome):</p>
<pre><code>index.js:5 WebSocket connection to 'ws://localhost:2657/?colyseusid=Byj_N10bm' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
</code></pre>
]]></description><link>http://discuss.colyseus.io/topic/108/websocket-not-connecting</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 23:18:54 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/108.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Jun 2018 05:05:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Websocket not connecting on Invalid Date]]></title><description><![CDATA[<p>client</p>
<pre><code class="language-js">import * as Colyseus from &quot;colyseus.js&quot;;

var host = (window.document.location.host || &quot;localhost&quot;).replace(/:.*/, '');
var client = new Colyseus.Client('ws://' + host + ':2657');
</code></pre>
<p>server: <a href="https://github.com/gamestdio/colyseus-examples/blob/master/index.ts" rel="nofollow">https://github.com/gamestdio/colyseus-examples/blob/master/index.ts</a></p>
<p>Error ( using Chrome):</p>
<pre><code>index.js:5 WebSocket connection to 'ws://localhost:2657/?colyseusid=Byj_N10bm' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
</code></pre>
]]></description><link>http://discuss.colyseus.io/post/355</link><guid isPermaLink="true">http://discuss.colyseus.io/post/355</guid><dc:creator><![CDATA[DrevanTonder]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Websocket not connecting on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/108">@drevantonder</a></p>
<p>Sorry for the confusion, <a href="https://github.com/gamestdio/colyseus-examples/blob/master/index.ts#L15" rel="nofollow">colyseus-examples</a> is binding the server on port <code>2567</code>, and your client is trying to connect to <code>2657</code>. I'll update the ports on the demonstration projects to avoid this confusion.</p>
<p>Cheers</p>
]]></description><link>http://discuss.colyseus.io/post/357</link><guid isPermaLink="true">http://discuss.colyseus.io/post/357</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Websocket not connecting on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a> Thanks</p>
]]></description><link>http://discuss.colyseus.io/post/358</link><guid isPermaLink="true">http://discuss.colyseus.io/post/358</guid><dc:creator><![CDATA[DrevanTonder]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>