Skip to content

Remote Script Execution

Namhyeon, Go edited this page Sep 25, 2024 · 4 revisions

Remote Script Execution

Starting from version 0.2.7.19, WelsonJS supports the Remote Script Execution feature. You can test it as follows:

cscript app.js https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js

If you want to use it within your code, you can do it like this:

var HELO = require("https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js");
HELO.main();

If it works correctly, the console will output the following results:

[*] Requested URL: https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
[*] Received 81 bytes
[*] Hello world
Clone this wiki locally