Sometime, it has error with matchmaker. Like this
The problem is I don't know where the line of code that cause error. How can I debug. It just happen sometime and when I restart the service, it works again.
I tried run with
DEBUG=colyseus:* node index.js but no error output. I tried to add log in your code and find out that in the CreateRoom function,
const roomsSpawnedByProcessId = yield exports.presence.hgetall(getRoomCountKey());
roomsSpawnedByProcessId is null, I used Redis.
No idea why