cubbles / cubx.core.rte

Contains the artifacts for the in-browser runtime-environment.
https://cubbles.atlassian.net/wiki/display/RTE
1 stars 1 forks source link

ConnectionManager: Warn the user if the connection transported an object, wich not serialisable is, and the copyValue is true. #14

Closed pwrinc closed 6 years ago

pwrinc commented 6 years ago

For objects, which are not serialisable (with JSON.stringify), must be set the copyValue Property as false.

TODO: Get a warning log, if the transported object is not an instance of Object. (Like a XMLHttpRequest object) and the property copyValue is true.

pwrinc commented 6 years ago

Please refactor to ensure that tested paylod is of type object. (Maybe we need to figure out how to test if a given value is serializable?)