RO and and Smart Mobile Studio WebWorkers

Seems the RO interface need an update following changes in RTL files organization.

To be able to execute a TWebWorkerThread (JS file), I had to remove SmartCL.System and W3System units from RemObjectsSDK.pas
Unknown “window” error.

But now calling RO services within webworkers still fail with this message:
Uncaught ReferenceError: RemObjects is not defined.

Hello

RemObjects SDK for Delphi itself as well as the code generated by its code generator (like interface _Intf files) is intended to be run in Delphi (or Lazarus) code / environment / RTL . It was never claimed that this code will even work in JS code generated by 3rd party transpilers like SMS.

I’d suggest that you’ll report this as a bug to SMS developers and/or switch to using REST interfaces that can be exposed by Remoting SDK servers via the HttpAPI feature. Note that this support can be added to existing servers w/o breaking backwards compatibility.

Regards