I want to send objects between client and server. however, when i try to pass an object, i find that i am unable to use it (values get undefined).
To get around this, i am simply passing the object through the connection as a string by using
json.stringify at source
and
json.parse at destination
this is working so far but i am worried this is an inelegant solution and when i start working with complex object (graphics objects etc), i will end up in a bad place.
Is there any native way in sockjs for working with objects?
thanks.