Constructor
new Session(id, capabilities)
Parameters:
Name | Type | Description |
---|---|---|
id | string | The session ID. |
capabilities |
- Source
Methods
getCapabilities() → (non-null) {Capabilities}
- Source
Returns:
This session's capabilities.
- Type:
- Capabilities
getCapability(key) → {*}
Retrieves the value of a specific capability.
Parameters:
Name | Type | Description |
---|---|---|
key | string | The capability to retrieve. |
- Source
Returns:
The capability value.
- Type:
- *
getId() → {string}
- Source
Returns:
This session's ID.
- Type:
- string
toJSON() → {string}
Returns the JSON representation of this object, which is just the string session ID.
- Source
Returns:
The JSON representation of this Session.
- Type:
- string