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"
IPeer
Interface IPeer<IEventsList>
Type parameters
IEventsList
:
IPeerEventsList
Hierarchy
INode
<
IEventsList
>
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
constructor
new IPeer
(
id
?:
string
)
:
any
Parameters
Optional
id:
string
Returns
any
Properties
channels
Manager
channels
Manager
:
TChannelsManager
cursors
Manager
cursors
Manager
:
TCursorManager
emitter
emitter
:
EventEmitter
id
id
:
string
is
Destroyed
is
Destroyed
:
boolean
prepared
prepared
:
IPeerPrepared
relations
relations
:
IPeerRelationsChannels
Methods
channel
Destroyed
channel
Destroyed
(
channelId
:
string
)
:
void
Parameters
channelId:
string
Returns
void
cursor
Destroyed
cursor
Destroyed
(
channelId
:
string
, cursorId
:
string
)
:
void
Parameters
channelId:
string
cursorId:
string
Returns
void
destroy
destroy
(
)
:
void
Returns
void
emit
emit<IE>
(
eventName
:
IE
, data
:
IEventsList[IE]
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
data:
IEventsList[IE]
Returns
this
generate
Id
generate
Id
(
)
:
string
Returns
string
get
Api
Callbacks
get
Api
Callbacks
(
apiQuery
:
any
)
:
Promise
<
IPeerApiCallbacks
>
Parameters
apiQuery:
any
Returns
Promise
<
IPeerApiCallbacks
>
got
Pkg
got
Pkg
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
handle
Bundles
handle
Bundles
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
handle
Destroyed
handle
Destroyed
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
handle
Queries
handle
Queries
(
channelId
:
string
, pkg
:
IPkg
)
:
void
Parameters
channelId:
string
pkg:
IPkg
Returns
void
handle
Query
handle
Query
(
channelId
:
string
, query
:
any
)
:
void
Parameters
channelId:
string
query:
any
Returns
void
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
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
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
ready
ready
(
channelId
:
string
)
:
void
Parameters
channelId:
string
Returns
void
send
Destroyed
send
Destroyed
(
cursor
:
TPeerCursor
)
:
void
Parameters
cursor:
TPeerCursor
Returns
void
send
Query
send
Query
(
cursor
:
TPeerCursor
)
:
void
Parameters
cursor:
TPeerCursor
Returns
void
wrap
wrap
(
)
:
void
Returns
void
Globals
"ancient-
peer/src/lib/peer"
Peer
IPeer
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
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