xmpp_p2p
Preparing search index...
core/xmpp-chat
XmppChatManager
Class XmppChatManager
Stores, reloads, and archives one-to-one chat history.
Index
Constructors
constructor
Properties
chat
History
Methods
flush
Save
Queue
handle
Incoming
Mam
Query
handle
Incoming
Mam
Result
initialize
query
Chat
History
record
Chat
Message
Constructors
constructor
new
XmppChatManager
(
ctx
:
XmppChatContext
)
:
XmppChatManager
Parameters
ctx
:
XmppChatContext
Returns
XmppChatManager
Properties
Readonly
chat
History
chatHistory
:
Map
<
string
,
XmppMessage
>
= ...
Methods
flush
Save
Queue
flushSaveQueue
()
:
Promise
<
void
>
Returns
Promise
<
void
>
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
>
initialize
initialize
()
:
Promise
<
void
>
Returns
Promise
<
void
>
query
Chat
History
queryChatHistory
(
targetPeerJid
:
string
,
withJid
?:
string
,
queryId
?:
string
,
)
:
Promise
<
string
>
Parameters
targetPeerJid
:
string
Optional
withJid
:
string
Optional
queryId
:
string
Returns
Promise
<
string
>
record
Chat
Message
recordChatMessage
(
msg
:
XmppMessage
)
:
Promise
<
void
>
Parameters
msg
:
XmppMessage
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
chat
History
Methods
flush
Save
Queue
handle
Incoming
Mam
Query
handle
Incoming
Mam
Result
initialize
query
Chat
History
record
Chat
Message
xmpp_p2p
Loading...
Stores, reloads, and archives one-to-one chat history.