Hi I’m using Nakama server side code. For registerMatch Hook
initializer.registerMatch(‘lobby’, {
matchInit,
matchJoinAttempt,
matchJoin,
matchLoop,
matchLeave,
matchTerminate
});
And it showing Exit code 1
When running nakama server.
Hi I’m using Nakama server side code. For registerMatch Hook
initializer.registerMatch(‘lobby’, {
matchInit,
matchJoinAttempt,
matchJoin,
matchLoop,
matchLeave,
matchTerminate
});
And it showing Exit code 1
When running nakama server.
Hey @Looper,
You’re missing the MatchSignal function in the hooks, it was introduced in Nakama v3.8.0, the body of the function can just return the state, see an example here.
I think your TS definitions are outdated, please update them from https://github.com/heroiclabs/nakama-common
How to Install this nakama common to nakama server. Copy the files, Is it right?
If you’re looking to install the TypeScript definitions you should use
npm i 'https://github.com/heroiclabs/nakama-common#master'. If you want to update them npm update nakama-runtime should work.
Hope this helps.
Try deleting the node-modules folder, as well as the package.json and package-lock.json files and try npm i 'https://github.com/heroiclabs/nakama-common#master again, then retry to recompile please and let me know if that worked.
Thanks Worked!!
But Help in this