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. ttcong194
ttcong194

ttcong194

@ttcong194

Chat Follow Unfollow
1
Reputation
15
Posts
1.5k
Profile views
0
Followers
0
Following
Joined 25 Sept 2020, 17:52 Last Online 1 Sept 2021, 14:08

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

Posts made by ttcong194

RE: What is best way to upgrade for client and server colyseus? (sovled)

@COCO @endel thanks for your reply.
Can the client that use colyseus.js 0.13 work properly with the server that use colyseus 0.14. And Is colyseus support backward compatibility ?
In my opinion, the process that upgrade for server can happen easily. But for client, the process depend on rollout update of every store. That mean some users with old version or some user dont accept to update new version can't connect to server that update new version.

posted in Questions & Help • 22 Aug 2021, 14:57
What is best way to upgrade for client and server colyseus? (sovled)

Hi everyone,

I used colyseus.js 0.13 on cocos creator for mobile and I also used colyseus 0.13 on my server. And both of them run on live. Recently, I have plan to upgrade to new version colyseus for both.

But I dont know what is best way to upgrade for both that dont affect a lot to our system ?

Can anyone give me some ideas,please?

posted in Questions & Help • 22 Aug 2021, 11:51
About reconnect in lobbyroom ?

Hi everyone . Is it possible use reconnect in lobby room similar normal room ?
I see lobby room extend from room. But I cant override function

 public onLeave?(client: Client, consented?: boolean): void | Promise<any>;

in my own class

export class MainRoom extends LobbyRoom {

}

Thanks for considering me

posted in Questions & Help • 27 Mar 2021, 09:56
RE: Reldens - MMORPG Platform

It's so nice. thanks for sharing your experience

posted in Showcase • 14 Mar 2021, 02:53
RE: it's possible to use nginx instead of colyseus/proxy

@endel , thanks for reaching out. I'm looking forward the new proxy. is it public on github ?

posted in Questions & Help • 12 Mar 2021, 16:31
it's possible to use nginx instead of colyseus/proxy

Hi everyone,
Recently I used colyseus/proxy for my game. But my proxy sometime go down in interval 1 or 2 day.

is it possible to use nginx instead of colyseus/proxy to scale multiple server or process ?

Thanks all.

posted in Questions & Help • 12 Mar 2021, 14:35
Get error ECONNRESET in colyseus/proxy

Hi everyone,
I use colyseus/proxy for my game. Everything is right and and I deployed all successfully.
But something I get this error ECONNRESET in log of proxy.
This make proxy died and I cant connect to my game.
It happen not usually. Sometime it happen. I dont know what reason is.
It's log from my proxy

2021-03-08T05:22:11: Using proxy 0 /colyseus//api/room?roomId=AxsYHi3Fr
2021-03-08T05:22:11: Using proxy 0 /colyseus//api
2021-03-08T05:22:16: Using proxy 0 /colyseus//api/room?roomId=AxsYHi3Fr
2021-03-08T05:22:16: Proxy error during: /colyseus//api/room?roomId=AxsYHi3Fr
2021-03-08T05:22:16: Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
2021-03-08T05:22:16: node VTbmaNTBD/95.111.196.179:8080 failed, unregistering
2021-03-08T05:22:16: Using proxy NaN /colyseus//api/room?roomId=AxsYHi3Fr
2021-03-08T05:22:16: No proxy available! {}
2021-03-08T05:22:16: cleaned up VTbmaNTBD presence
2021-03-08T05:22:16: Using proxy NaN /colyseus//api
2021-03-08T05:22:16: No proxy available! {}

Anyone has same problem ? And how to solve it ?
Thanks all.

posted in Questions & Help • 8 Mar 2021, 05:44
RE: Cant get player's ip when use colyseus/proxy

@endel . it's done and work for me. thanks for your support. You're so nice.

posted in Questions & Help • 27 Feb 2021, 02:17
RE: Cant get player's ip when use colyseus/proxy

@endel thanks for replying me.
I update new proxy use this command npm i @colyseus/proxy@latest. And make sure last version is 0.12.4.
But when I check file proxy.js again at /node_modules/@colyseus/proxy/proxy.js, I cant find line req.headers['x-forwarded-for'] = req.connection.remoteAddress;

server.on('upgrade', function (req, socket, head) {
    var proxy = getProxy(req.url);
    if (proxy) {
        proxy.ws(req, socket, head);
    }
    else {
        console.error("No proxy available!", processIds);
    }
});

is that any wrong with me ?

posted in Questions & Help • 26 Feb 2021, 05:42
Cant get player's ip when use colyseus/proxy

I use colyseus/proxy for my game.
If I use this code to get ip. I only get ip of proxy of cloud. Not client's ip.

async onAuth(client: Client, options: any, request: http.IncomingMessage) {
const ip = request.headers['x-forwarded-for'] || request.connection.remoteAddress;
}

Anyone has same problem ? And how to solve this problem ?

posted in Questions & Help • 25 Feb 2021, 10:41

© 2023 Endel Dreyer