From my understanding JS objects are stored in doubles and we only get something like 2^53 maximum ints. This is fine for most cases. But i have a very specific case where i need 64bit integers.
My first workaround was to send the int64s as an object/array with 2 ints. This works well but it feels very hacky, are there any other alternatives that you would recommend ? I was thinking a BigInt but im unsure how to efficiently create BigInt instances in C++.