Skip to main content

Networking

HTTP requests, sockets and servers, WebSockets, and remote services.

Commonly used

Guides

All APIs in this topic

Import modules with import * as Ui from 'LensStudio:Ui'.

Components, assets, and modules

APIDescription
LensStudio:LcaUtils.js
LensStudio:NetworkBefore using anything in this namespace, make sure to import LensStudio:Network and add network in your plugin's module.json.
LensStudio:RemoteMediaModule.js
LensStudio:RemoteServiceModuleClass for interacting with Snap's RemoteServiceModule.
LensStudio:WebSocketModule providing WebSocket client and server classes for bidirectional network communication.

Objects and data

APIDescription
Editor.MyLensesNamespace for Lens Studio's My Lenses account integration.