Group Details Private



Member List

RE: Which files from colyseus examples to upload to Arena?

Hi @Terradon, welcome 👋

After running npm run build, you can upload the lib/ diretory to Arena and it should work!


posted in Questions & Help
RE: patch-package and deployment(sovled)

Hi @eddiwood, welcome!

That is a good question, afaik Arena does not currently support patching node_modules, I'm curious which package you're patching, and why?


posted in Questions & Help
RE: Blocked by CORS Policy.(sovled)

If you're using Arena, please use wss:// instead of ws://

posted in Questions & Help
RE: Getting cors error while hosting on colyseus arena (solved)

Hi @adistar, welcome! I wonder if you still have the same issue if removing app.use(cors())? The server does use CORS by default.

posted in Colyseus Arena - Cloud Hosting
RE: [C]pm2 + @colyseus/proxy Has been Error: socket hang up who can help me?

Hi @Bright, can you share more details about your environment?

  • Are you using PM2? How's your ecosystem config file?
  • Which Presence and Driver have you configured on your Colyseus server?
  • Which version of the proxy and Colyseus are you using?

If you can share the relevant pieces of source code it would be best. Cheers!

posted in Questions & Help
RE: Destroy a room after a set duration if no one joined it (sovled)

Hi @LouisonDVC, I think you're looking for autoDispose=false:

I suggest resetting a timeout yourself to dispose the room after 1h during onCreate() and every onLeave(). You can use this.disconnect() to forcibly disconnect & dispose the room when that timeout gets executed.

Hope this helps, cheers!

posted in Questions & Help
RE: Approach to avoid sharing sessionId? (sovled)

Hi @newbee, the possibility of cheating is going to depend on how the server receives and interprets the messages sent by the clients. You'd never act on behalf of "player 2" if "player 1" sent a message, for example. The sessionId's are meant to be shared so the client-side can know the identifier of each client and create the visual representation for them.

posted in Questions & Help
RE: Mobx or immer/immutable adapter for colyseus.js

Hi @temka1234,

This is a good question, I know there are 2 experiments for Mobx integration with Colyseus' schema:

When decoding the state, the schema is capable of returning the array containing all changes - this is not exposed by the framework currently, though:

posted in Questions & Help
RE: Schema with references to another declared elsewhere (sovled)

Hi @metiscoda,

You can't have circular dependencies between your schema files. Your KamadiTest is requiring KawadiPlayer, which requires KamadiTest again.

I suggest refactoring your structures so you don't have circular dependencies. Cheers!

posted in Questions & Help