Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. DrevanTonder
    D

    DrevanTonder

    @DrevanTonder

    Chat Follow Unfollow
    0
    Reputation
    2
    Posts
    1124
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • 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 •
    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 •