I made a `Character` class shared by the client and server in the same js file.

The server instanciates these characters and stocks them in a `characterList` object. I send it to the client with `socket.emit( 'updated_characters', characterList )`, but the client gets back an object of `Object`, instead of an object of `Character`, so I can't use my Character's methods on them.

How can I get around that ?