Function binding in TS

@formatCvt damn :S im hoping this is not the case, cause most of my state is objects such as Player class etc… I never saw this in any doc either

@sesposito here is my issue on this repo:
[JayArrowz/NakamaTypescript: Nakama TS (github.com)] (GitHub - JayArrowz/NakamaTypescript: Nakama TS)

Please run npm install first.
You can use npm run run to run the docker container or npm run build to transpile

You’ll notice the error inside the match loop when you reference myClass.getInteger().

{"level":"warn","ts":"2022-07-23T23:57:11.138Z","caller":"server/match_handler.go:295","msg":"Stopping match after error from match_loop execution","mid":"4f29f600-e232-48ef-8fa8-87865feb062f","tick":0,"error":"TypeError: Object has no member 'getInteger' at matchLoop (index.js:61:54(9))"}

Now if i use this implementation of MyClass it works: