Multiplayer server side game engine


I plan to migrate a little multiplayer game developed with Phaser (client side) and nodeJs (server side). In Haxe and Heaps. I want to know if it’s possible to use heaps on server-side. Because for now, my nodejs code all the collision and interaction etc. My goal is to simplify it and to harmonize the server and client side (to avoid a lot of problematics).

Is-it possible ?

Thanks in advance,
Have a good day.