Search
Preparing search index...
The search index is not available
AncientSouls Documentation
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"ancient-peer/src/lib/peer"
Peer
Class Peer<IEventsList>
Type parameters
IEventsList
:
IPeerEventsList
Hierarchy
IPeer
Peer
Indexable
[
key:
string
]:
any
Index
Constructors
constructor
Properties
channels
Manager
cursors
Manager
emitter
id
is
Destroyed
prepared
relations
Methods
channel
Destroyed
cursor
Destroyed
destroy
emit
generate
Id
get
Api
Callbacks
got
Pkg
handle
Bundles
handle
Destroyed
handle
Queries
handle
Query
off
on
once
ready
send
Destroyed
send
Query
wrap
Constructors
Static
constructor
new
Peer
(
id
?:
string
)
:
any
Parameters
Optional
id:
string
Returns
any
Properties
Static
channels
Manager
channels
Manager
:
TChannelsManager
Static
cursors
Manager
cursors
Manager
:
TCursorManager
Static
emitter
emitter
:
EventEmitter
Static
id
id
:
string
Static
is
Destroyed
is
Destroyed
:
boolean
Static
prepared
prepared
:
IPeerPrepared
Static
relations
relations
:
IPeerRelationsChannels
Methods
Static
channel
Destroyed
channel
Destroyed
(
channelId
:
string
)
:
void
Parameters
channelId:
string
Returns
void
Static
cursor
Destroyed
cursor
Destroyed
(
channelId
:
string
, cursorId
:
string
)
:
void
Parameters
channelId:
string
cursorId:
string
Returns
void
Static
destroy
destroy
(
)
:
void
Returns
void
Static
emit
emit<IE>
(
eventName
:
IE
, data
:
IEventsList[IE]
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
data:
IEventsList[IE]
Returns
this
Static
generate
Id
generate
Id
(
)
:
string
Returns
string
Static
get
Api
Callbacks
get
Api
Callbacks
(
apiQuery
:
any
)
:
Promise
<
IPeerApiCallbacks
>
Parameters
apiQuery:
any
Returns
Promise
<
IPeerApiCallbacks
>
Static
got
Pkg
got
Pkg
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
Static
handle
Bundles
handle
Bundles
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
Static
handle
Destroyed
handle
Destroyed
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
Static
handle
Queries
handle
Queries
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
Static
handle
Query
handle
Query
(
channelId
:
string
, query
:
any
)
:
void
Parameters
channelId:
string
query:
any
Returns
void
Static
off
off<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
Static
on
on<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
Static
once
once<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
Static
ready
ready
(
channelId
:
string
)
:
void
Parameters
channelId:
string
Returns
void
Static
send
Destroyed
send
Destroyed
(
cursor
:
TPeerCursor
)
:
void
Parameters
cursor:
TPeerCursor
Returns
void
Static
send
Query
send
Query
(
cursor
:
TPeerCursor
)
:
void
Parameters
cursor:
TPeerCursor
Returns
void
Static
wrap
wrap
(
)
:
void
Returns
void
Globals
"ancient-
peer/src/lib/peer"
Peer
constructor
channels
Manager
cursors
Manager
emitter
id
is
Destroyed
prepared
relations
channel
Destroyed
cursor
Destroyed
destroy
emit
generate
Id
get
Api
Callbacks
got
Pkg
handle
Bundles
handle
Destroyed
handle
Queries
handle
Query
off
on
once
ready
send
Destroyed
send
Query
wrap
IPeer
IPeer
Api
IPeer
Api
Callbacks
IPeer
Api
Send
IPeer
Bundle
IPeer
Cursor
IPeer
Cursor
Query
IPeer
Event
Data
IPeer
Events
List
IPeer
Prepared
IPeer
Query
IPeer
Relations
Channels
IPeer
Relations
Cursors
IPkg
TChannels
Manager
TCursor
Manager
TPeer
TPeer
Api
Query
TPeer
Cursor
Mixed
Peer
default
Api
mixin
Generated using
TypeDoc