Server-side CannonJS - Stack Overflow

So basically I’ve started using CannonJS and got it working very well with ThreeJS on the client side. I wanted to now try to implement CannonJS on the server, but for some time now I have been met with a stack overflow error.

Whenever I try to add a body to the world, be it plane or cube, the server just overflows. I use NodeJS with Express, for comms and trying to implement CannonJS. Below is picture of error: Screen Shot 2020-08-03 at 10.34.05 AM
If I make the function hasBinary return true by defualt, suddenly becomes the issue on the stack. Any idea what is going on?

function loadLevel(){
const cubeShape = new CANNON.Box(new CANNON.Vec3(.5, .5, .5))

var cubeBody = new CANNON.Body({ mass: 1 });


cubeBody.position.x = 0
cubeBody.position.y = 20
cubeBody.position.z = 4


//const planeShape = new CANNON.Plane()
const planeShape = new CANNON.Box(new CANNON.Vec3(15, 15, 0.1))
var planeBody = new CANNON.Body({ mass: 0, material: physicsMaterial })
planeBody.position.set(0, 0, 0)
planeBody.quaternion.setFromAxisAngle(new CANNON.Vec3(1, 0, 0), -Math.PI / 2)



Ok So it seems like I have solved it.
The issue was that I was sending the entire object through Socket(every 5ms mind you) faster than the object could be sent/loaded, thats why stack overflowed, or at least I think thats why. Setting world to update every 5ms, but sending data every 33ms helps.