Sharing classes between scenes

Hi

I’m building a game using socket.io and Phaser, I would like to create a socketManager class that will be instantiated once and available to all scenes. What would be the best pattern for this?

I’ve read that loading eg an image in one scene, that image is available in all scenes. But how would this work if I want to load a (socketManager) class?

Thanks!

Ben

You can make a global plugin.