sessionStorage

Protocol bindings for all sessionStorage operations.

Usage

1
client.sessionStorage([method][,args]).then(callback);

Parameters

Param Type Details
method
optional
String method for storage operation
args
optional
Object/String operation arguments

Example

sessionStorage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// get the storage item for the given key
client.sessionStorage('GET', someKey, function(err,res) { ... });

// get all keys of the storage
client.sessionStorage(function(err,res) { ... });

// set the storage item for the given key
client.sessionStorage('POST', {key: someKey, value: someValue});

// remove the storage item for the given key
client.sessionStorage('DELETE', 'someKey');

// clear the storage
client.sessionStorage('DELETE');