-
It seems that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For now , it's better to post only pure JS values as messages. (JS objects of godot Object & Variant are not supported) The underlying mechanism EDIT: JSWorker has not been implemented in web.impl and jsc.impl. |
Beta Was this translation helpful? Give feedback.
For now , it's better to post only pure JS values as messages. (JS objects of godot Object & Variant are not supported)
The underlying mechanism
onmessage
used is serializer/deserializer in different JS runtimes, it's challenging to implement it compatible between all JS runtimes.When using web.impl or jsc.impl, the only way to serialize/deserialize is JSON.
And, it's impossible to serialize custom JS objects in quickjs.
EDIT: JSWorker has not been implemented in web.impl and jsc.impl.