# client\_local\_storage

Source: https://zotonic.com/docs/2004/client_local_storage

URI: https://zotonic.com/id/2004

Language: en



Model to access the `localStorage` on the client (browser).

The client-id and routing topic in the *context* must be set when calling the functions in this module. This is the case for all MQTT topic calls from the client.

The localStorage on the client is accessed via publishing to the topic `~client/model/localStorage/...`. In the client the topic is `model/localStorage/...`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2004?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2004?language=en>)
