Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. DrevanTonder
D

DrevanTonder

@DrevanTonder

Chat Follow Unfollow
0
Reputation
2
Posts
1.1k
Profile views
0
Followers
0
Following
Joined 25 Jun 2018, 05:03 Last Online 2 Jul 2018, 07:08

  • Profile
  • More
    • Continue chat with DrevanTonder
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
DrevanTonder Follow

Posts made by DrevanTonder

RE: Websocket not connecting

@endel Thanks

posted in Questions & Help • 26 Jun 2018, 01:03
Websocket not connecting

client

import * as Colyseus from "colyseus.js";

var host = (window.document.location.host || "localhost").replace(/:.*/, '');
var client = new Colyseus.Client('ws://' + host + ':2657');

server: https://github.com/gamestdio/colyseus-examples/blob/master/index.ts

Error ( using Chrome):

index.js:5 WebSocket connection to 'ws://localhost:2657/?colyseusid=Byj_N10bm' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
posted in Questions & Help • 25 Jun 2018, 05:05

© 2023 Endel Dreyer