Cloud, Networking & Storage
Internet access, storage, remote APIs and assets, Snap Cloud, WebSockets, web views, Bluetooth, and Spectacles Mobile Kit.
Topics in this section
Internet AccessCalling the open internet: InternetModule, fetch requests and responses, headers, and blobs.StorageData kept on the device between sessions, and cloud storage shared across users or locations.Snap CloudSnap Cloud authentication and databases through SupabaseModule and SupabaseProject.Remote Assets & MediaLoading media and assets at runtime: RemoteMediaModule, remote references, dynamic resources, and image upload.WebSocketsTwo-way connections to a server: WebSocket and its events.Web ViewShowing web pages in a Lens: the web page texture and its loading policy.Spectacles Mobile KitConnecting a Spectacles Lens to a companion mobile app.
Shared across Cloud, Networking & Storage
Reference assets and other modules with a script input.
Components, assets, and modules
| API | Description |
|---|---|
| RemoteServiceModule | Provides access to Snap authorized remote services. |
Objects and data
| API | Description |
|---|---|
| Bluetooth SPECS | |
| RemoteApiRequest | |
| RemoteApiResponse |
Guides
Internet AccessUse the Fetch API and InternetModule in a SPECS Lens to make HTTPS requests, call external APIs, download media, and check whether the internet is available.WebSocketConnect a SPECS Lens to real-time data streams over the internet with the WebSocket API, for live updates and two-way communication.Persistent Cloud StoragePersistent Cloud Storage allows you to store data in the cloud, such that it can persist across account logins, as well as be shared in a multiplayer session.Single Player ExamplePersistent Cloud Storage is a great way to build a Lens that you want a user to come back with over, and over again.Multiplayer ExamplePersistent Cloud Storage can be shared in a multiplayer session by passing in the MultiplayerSession provided by the ConnectedLensModule to allow multiple participants to access…StorageCreate a Snap Cloud storage bucket and download images, 3D models, and audio from it into a SPECS Lens.
Related topics
Graphics, Materials & Particles › Meshes & EffectsMesh visuals and mesh building, VFX, post effects, and Gaussian splats.Connected Lenses (Multiplayer)Multiplayer sessions, realtime stores, and colocated tracking.Graphics, Materials & Particles › Textures & VideoTexture assets and providers, video playback and recording, and media pickers.