Preparing search index...
The search index is not available
polykey
polykey
sessions
Session
Class Session
Hierarchy
CreateDestroyStartStop
Session
Index
Constructors
constructor
Properties
[init
Lock]
fs
logger
session
Token
Path
Accessors
[destroyed]
[event
Handled]
[event
Handlers]
[event
Target]
[handle
Event
Error]
[running]
[status
P]
[status]
Methods
add
Event
Listener
destroy
dispatch
Event
read
Token
remove
Event
Listener
start
stop
write
Token
create
Session
Constructors
constructor
new
Session
(
__namedParameters
)
:
Session
Parameters
__namedParameters
:
{
fs
:
FileSystem
;
logger
:
Logger
;
sessionTokenPath
:
string
;
}
fs
:
FileSystem
logger
:
Logger
session
Token
Path
:
string
Returns
Session
Properties
Readonly
[init
Lock]
[init
Lock]
:
RWLockWriter
Protected
fs
fs
:
FileSystem
Protected
logger
logger
:
Logger
Readonly
session
Token
Path
session
Token
Path
:
string
Accessors
[destroyed]
get
[destroyed]
(
)
:
boolean
Returns
boolean
[event
Handled]
get
[eventHandled]
(
)
:
ReadonlyWeakSet
<
Event
>
Returns
ReadonlyWeakSet
<
Event
>
[event
Handlers]
get
[eventHandlers]
(
)
:
ReadonlyMap
<
string
,
Set
<
EventHandlerInfo
>
>
Returns
ReadonlyMap
<
string
,
Set
<
EventHandlerInfo
>
>
[event
Target]
get
[eventTarget]
(
)
:
EventTarget
Returns
EventTarget
[handle
Event
Error]
get
[handleEventError]
(
)
:
(
(
evt
)
=>
void
)
Returns
(
(
evt
)
=>
void
)
(
evt
)
:
void
Parameters
evt
:
EventError
Returns
void
[running]
get
[running]
(
)
:
boolean
Returns
boolean
[status
P]
get
[statusP]
(
)
:
Promise
<
Status
>
Returns
Promise
<
Status
>
[status]
get
[status]
(
)
:
Status
Returns
Status
Methods
add
Event
Listener
add
Event
Listener
(
type
,
callback
,
options
?
)
:
void
Parameters
type
:
string
callback
:
null
|
EventListenerOrEventListenerObject
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
void
destroy
destroy
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
dispatch
Event
dispatch
Event
(
event
)
:
boolean
Parameters
event
:
Event
Returns
boolean
read
Token
read
Token
(
)
:
Promise
<
undefined
|
SessionToken
>
Returns
Promise
<
undefined
|
SessionToken
>
remove
Event
Listener
remove
Event
Listener
(
type
,
callback
,
options
?
)
:
void
Parameters
type
:
string
callback
:
null
|
EventListenerOrEventListenerObject
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
start
start
(
__namedParameters
?
)
:
Promise
<
void
>
Parameters
__namedParameters
:
{
fresh
?:
boolean
;
sessionToken
?:
SessionToken
;
}
= {}
Optional
fresh
?:
boolean
Optional
session
Token
?:
SessionToken
Returns
Promise
<
void
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
write
Token
write
Token
(
sessionToken
)
:
Promise
<
void
>
Parameters
sessionToken
:
SessionToken
Returns
Promise
<
void
>
Static
create
Session
create
Session
(
__namedParameters
)
:
Promise
<
Session
>
Parameters
__namedParameters
:
{
fresh
?:
boolean
;
fs
?:
FileSystem
;
logger
?:
Logger
;
sessionToken
?:
SessionToken
;
sessionTokenPath
:
string
;
}
Optional
fresh
?:
boolean
Optional
fs
?:
FileSystem
Optional
logger
?:
Logger
Optional
session
Token
?:
SessionToken
session
Token
Path
:
string
Returns
Promise
<
Session
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
[init
Lock]
fs
logger
session
Token
Path
[destroyed]
[event
Handled]
[event
Handlers]
[event
Target]
[handle
Event
Error]
[running]
[status
P]
[status]
add
Event
Listener
destroy
dispatch
Event
read
Token
remove
Event
Listener
start
stop
write
Token
create
Session
polykey
acl
bootstrap
claims
client
discovery
errors
events
gestalts
git
http
identities
ids
keys
network
nodes
notifications
schema
sessions
errors
events
types
utils
Session
Session
Manager
sigchain
status
tasks
tokens
utils
validation
vaults
workers
Error
Polykey
Event
Polykey
Polykey
Agent
Polykey
Client
File
System
To
String
Abstract
Constructor
Parameters
Callback
Deep
Partial
Deep
Readonly
File
Handle
Function
Properties
Initial
Initial
Parameters
Inverse
Record
JSONValue
Non
Empty
Array
Non
Function
Properties
Object
Empty
Opaque
POJO
Promise
Deconstructed
Record
Key
From
Value
Ref
Timer
config
Generated using
TypeDoc