Where to write before/after hooks code?

I have implemented a simple browser game using reactjs and nakama. Now I want to implement some before and after hooks in this project. I am not understanding where to write this before/after hooks code in this project?

Hi, before/after hooks are server-side feature so the question is: do you have some server-side code or are you running just base/vanilla nakama server?

If all of your game logic so far is client-side then I’d suggest readint up about writing server-side nakama modules: Nakama: Introduction | Heroic Labs Documentation …and then specifically about hooks here: Nakama: Using Hooks | Heroic Labs Documentation

1 Like