xmpp_p2p
Preparing search index...
core/xmpp-router
XmppRouterContext
Interface XmppRouterContext
Execution context required by the stanza router.
interface
XmppRouterContext
{
collections
:
any
;
collectionSubscriptions
:
any
;
discoInfoCache
:
Map
<
string
,
any
>
;
discoveryIdentity
:
any
;
discoveryNode
:
string
;
entityCapabilities
:
Map
<
string
,
any
>
;
jid
:
string
;
muc
?:
any
;
openPgpFingerprint
?:
string
;
openPgpState
:
any
;
pendingIq
:
Map
<
string
,
PendingIq
>
;
streams
:
Map
<
string
,
XmppStream
>
;
buildFollowersQuery
()
:
Element
;
buildOmemoBundleQuery
(
deviceId
:
number
)
:
Element
;
buildOmemoDevicesQuery
()
:
Element
;
buildRosterQuery
()
:
Element
;
buildVCardQuery
()
:
Element
;
createUploadSlot
(
slotId
:
string
,
filename
:
string
,
contentType
:
string
,
size
:
number
,
)
:
Promise
<
Element
>
;
deleteRosterEntry
(
jid
:
string
)
:
Promise
<
void
>
;
emit
(
event
:
string
,
...
args
:
any
[]
)
:
boolean
;
ensurePeerCapabilities
(
peerId
:
string
,
node
:
string
,
ver
:
string
,
hash
?:
string
,
)
:
Promise
<
void
>
;
getOrCreateStream
(
target
:
string
|
Multiaddr
)
:
Promise
<
XmppStream
>
;
getPubSubContext
()
:
any
;
getSecureContext
()
:
any
;
handleIncomingMamQuery
(
element
:
Element
,
peerId
:
string
)
:
Promise
<
void
>
;
handleIncomingMamResult
(
element
:
Element
,
peerId
:
string
)
:
Promise
<
void
>
;
handleSubscribe
(
peerId
:
string
,
fromJid
:
string
)
:
Promise
<
void
>
;
handleSubscribed
(
fromJid
:
string
)
:
Promise
<
void
>
;
handleUnsubscribe
(
peerId
:
string
,
fromJid
:
string
)
:
Promise
<
void
>
;
handleUnsubscribed
(
fromJid
:
string
)
:
Promise
<
void
>
;
jidFromPeerId
(
peerId
:
string
)
:
string
;
recordPresence
(
peerJid
:
string
,
presence
:
any
)
:
Promise
<
void
>
;
sendCurrentPresenceToPeer
(
peerId
:
string
)
:
Promise
<
void
>
;
setPeerClientState
(
peerId
:
string
,
state
:
"active"
|
"inactive"
)
:
void
;
updateVCard
(
profile
:
any
)
:
Promise
<
any
>
;
upsertRosterEntry
(
entry
:
any
)
:
Promise
<
any
>
;
}
Index
Properties
collections
collection
Subscriptions
disco
Info
Cache
discovery
Identity
discovery
Node
entity
Capabilities
jid
muc?
open
Pgp
Fingerprint?
open
Pgp
State
pending
Iq
streams
Methods
build
Followers
Query
build
Omemo
Bundle
Query
build
Omemo
Devices
Query
build
Roster
Query
build
V
Card
Query
create
Upload
Slot
delete
Roster
Entry
emit
ensure
Peer
Capabilities
get
Or
Create
Stream
get
Pub
Sub
Context
get
Secure
Context
handle
Incoming
Mam
Query
handle
Incoming
Mam
Result
handle
Subscribe
handle
Subscribed
handle
Unsubscribe
handle
Unsubscribed
jid
From
Peer
Id
record
Presence
send
Current
Presence
To
Peer
set
Peer
Client
State
update
V
Card
upsert
Roster
Entry
Properties
collections
collections
:
any
collection
Subscriptions
collectionSubscriptions
:
any
disco
Info
Cache
discoInfoCache
:
Map
<
string
,
any
>
discovery
Identity
discoveryIdentity
:
any
discovery
Node
discoveryNode
:
string
entity
Capabilities
entityCapabilities
:
Map
<
string
,
any
>
jid
jid
:
string
Optional
muc
muc
?:
any
Optional
open
Pgp
Fingerprint
openPgpFingerprint
?:
string
open
Pgp
State
openPgpState
:
any
pending
Iq
pendingIq
:
Map
<
string
,
PendingIq
>
streams
streams
:
Map
<
string
,
XmppStream
>
Methods
build
Followers
Query
buildFollowersQuery
()
:
Element
Returns
Element
build
Omemo
Bundle
Query
buildOmemoBundleQuery
(
deviceId
:
number
)
:
Element
Parameters
deviceId
:
number
Returns
Element
build
Omemo
Devices
Query
buildOmemoDevicesQuery
()
:
Element
Returns
Element
build
Roster
Query
buildRosterQuery
()
:
Element
Returns
Element
build
V
Card
Query
buildVCardQuery
()
:
Element
Returns
Element
create
Upload
Slot
createUploadSlot
(
slotId
:
string
,
filename
:
string
,
contentType
:
string
,
size
:
number
,
)
:
Promise
<
Element
>
Parameters
slotId
:
string
filename
:
string
contentType
:
string
size
:
number
Returns
Promise
<
Element
>
delete
Roster
Entry
deleteRosterEntry
(
jid
:
string
)
:
Promise
<
void
>
Parameters
jid
:
string
Returns
Promise
<
void
>
emit
emit
(
event
:
string
,
...
args
:
any
[]
)
:
boolean
Parameters
event
:
string
...
args
:
any
[]
Returns
boolean
ensure
Peer
Capabilities
ensurePeerCapabilities
(
peerId
:
string
,
node
:
string
,
ver
:
string
,
hash
?:
string
,
)
:
Promise
<
void
>
Parameters
peerId
:
string
node
:
string
ver
:
string
Optional
hash
:
string
Returns
Promise
<
void
>
get
Or
Create
Stream
getOrCreateStream
(
target
:
string
|
Multiaddr
)
:
Promise
<
XmppStream
>
Parameters
target
:
string
|
Multiaddr
Returns
Promise
<
XmppStream
>
get
Pub
Sub
Context
getPubSubContext
()
:
any
Returns
any
get
Secure
Context
getSecureContext
()
:
any
Returns
any
handle
Incoming
Mam
Query
handleIncomingMamQuery
(
element
:
Element
,
peerId
:
string
)
:
Promise
<
void
>
Parameters
element
:
Element
peerId
:
string
Returns
Promise
<
void
>
handle
Incoming
Mam
Result
handleIncomingMamResult
(
element
:
Element
,
peerId
:
string
)
:
Promise
<
void
>
Parameters
element
:
Element
peerId
:
string
Returns
Promise
<
void
>
handle
Subscribe
handleSubscribe
(
peerId
:
string
,
fromJid
:
string
)
:
Promise
<
void
>
Parameters
peerId
:
string
fromJid
:
string
Returns
Promise
<
void
>
handle
Subscribed
handleSubscribed
(
fromJid
:
string
)
:
Promise
<
void
>
Parameters
fromJid
:
string
Returns
Promise
<
void
>
handle
Unsubscribe
handleUnsubscribe
(
peerId
:
string
,
fromJid
:
string
)
:
Promise
<
void
>
Parameters
peerId
:
string
fromJid
:
string
Returns
Promise
<
void
>
handle
Unsubscribed
handleUnsubscribed
(
fromJid
:
string
)
:
Promise
<
void
>
Parameters
fromJid
:
string
Returns
Promise
<
void
>
jid
From
Peer
Id
jidFromPeerId
(
peerId
:
string
)
:
string
Parameters
peerId
:
string
Returns
string
record
Presence
recordPresence
(
peerJid
:
string
,
presence
:
any
)
:
Promise
<
void
>
Parameters
peerJid
:
string
presence
:
any
Returns
Promise
<
void
>
send
Current
Presence
To
Peer
sendCurrentPresenceToPeer
(
peerId
:
string
)
:
Promise
<
void
>
Parameters
peerId
:
string
Returns
Promise
<
void
>
set
Peer
Client
State
setPeerClientState
(
peerId
:
string
,
state
:
"active"
|
"inactive"
)
:
void
Parameters
peerId
:
string
state
:
"active"
|
"inactive"
Returns
void
update
V
Card
updateVCard
(
profile
:
any
)
:
Promise
<
any
>
Parameters
profile
:
any
Returns
Promise
<
any
>
upsert
Roster
Entry
upsertRosterEntry
(
entry
:
any
)
:
Promise
<
any
>
Parameters
entry
:
any
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
collections
collection
Subscriptions
disco
Info
Cache
discovery
Identity
discovery
Node
entity
Capabilities
jid
muc
open
Pgp
Fingerprint
open
Pgp
State
pending
Iq
streams
Methods
build
Followers
Query
build
Omemo
Bundle
Query
build
Omemo
Devices
Query
build
Roster
Query
build
V
Card
Query
create
Upload
Slot
delete
Roster
Entry
emit
ensure
Peer
Capabilities
get
Or
Create
Stream
get
Pub
Sub
Context
get
Secure
Context
handle
Incoming
Mam
Query
handle
Incoming
Mam
Result
handle
Subscribe
handle
Subscribed
handle
Unsubscribe
handle
Unsubscribed
jid
From
Peer
Id
record
Presence
send
Current
Presence
To
Peer
set
Peer
Client
State
update
V
Card
upsert
Roster
Entry
xmpp_p2p
Loading...
Execution context required by the stanza router.