Before using anything in this namespace, make sure to import LensStudio:Network and add network in your plugin's module.json.
LensStudio:Network
network
module.json
// module.json{ "main": "main.js", "permissions": ["network"]} Copy
// module.json{ "main": "main.js", "permissions": ["network"]}
// main.jsimport * as network from 'LensStudio:Network'; Copy
// main.jsimport * as network from 'LensStudio:Network';
Before using anything in this namespace, make sure to import
LensStudio:Network
and addnetwork
in your plugin'smodule.json
.Example