How can I make a spring joint using cannonjs?

I am trying to make a spring joint in playcanvas. But it is not available in ammojs. So I included cannonjs. But how to do a joint using that?

If you use cannonjs you need to make all collision and rigidbodies with it. It wont work together with ammo.js.
Ammo.js actually has joints, it’s just not exposed as API.
Here is a project with Hinge Joint, have a look at a source, you probably will be able to figure out how to add joints and change it’s properties: https://playcanvas.com/project/363871/overview/tutorial-hinge-joint