session

Protocol bindings for all session operations. In case you are looking for [POST] session to initialise a session on the server, take a look at /lib/protocol/init.

Usage

1
client.session([[doWhat=GET]]).then(callback);

Parameters

Param Type Details
doWhat=GET
optional
String session operation (GET delete)

Example

session.js
1
2
3
4
5
// retrieve the capabilities of the specified session
client.session(function(err,res) { ... });

// delete the session (equivalent to `end` action command)
client.session('delete');