How to set roomid as number

11 May 2020, 06:53

I am new to colyseus. Can someone guide me on how to set room id as the only number type

11 May 2020, 10:46

Hi @Fitninja, you can override the roomId during onCreate(), you'd have to make sure the id you provide is unique, though.

onCreate() {
  this.roomId = "/* your own id generation here */"
}

Cheers