SessionProtocol
PROTOCOL
SessionProtocol
public protocol SessionProtocol: Hashable
Represents a user session.
Properties
id
var id: SessionId
Uniquely identifies the session.
persistentId
var persistentId: DeviceId?
Uniquely identifies the current device.
Methods
keys()
func keys() throws -> JSONObject
Serializes the session keys to JSON.
args()
func args() throws -> JSONObject
Serializes the session arguments to JSON.
updateFrom(json:)
mutating func updateFrom(json: JSONObject) throws
Updates the session using the specified JSON.