Preparing search index...
The search index is not available
@deltachat/jsonrpc-client
@deltachat/jsonrpc-client
BaseDeltaChat
Class BaseDeltaChat<Transport>
Type Parameters
Transport
extends
BaseTransport
<
any
>
Hierarchy
TinyEmitter
<
Events
>
BaseDeltaChat
DeltaChat
StdioDeltaChat
Index
Constructors
constructor
Properties
account?
context
Emitters
event
Task
rpc
transport
Methods
emit
event
Loop
get
Context
Events
list
Accounts
off
on
once
Constructors
constructor
new
Base
Delta
Chat
<
Transport
>
(
transport
:
Transport
, startEventLoop
:
boolean
)
:
BaseDeltaChat
<
Transport
>
Type Parameters
Transport
extends
BaseTransport
<
any
,
Transport
>
Parameters
transport:
Transport
startEventLoop:
boolean
Returns
BaseDeltaChat
<
Transport
>
Properties
Optional
account
account
?:
Account
Private
context
Emitters
context
Emitters
:
{
[key:
number
]
:
TinyEmitter
<
ContextEvents
>
;
}
= {}
Type declaration
[
key:
number
]:
TinyEmitter
<
ContextEvents
>
Private
event
Task
event
Task
:
Promise
<
void
>
rpc
rpc
:
RawClient
transport
transport
:
Transport
Methods
emit
emit
<
E
>
(
event
:
E
,
...
args
:
Arguments
<
Events
[
E
]
>
)
:
BaseDeltaChat
<
Transport
>
Type Parameters
E
extends
"WebxdcStatusUpdate"
|
"Info"
|
"SmtpConnected"
|
"ImapConnected"
|
"SmtpMessageSent"
|
"ImapMessageDeleted"
|
"ImapMessageMoved"
|
"ImapInboxIdle"
|
"NewBlobFile"
|
"DeletedBlobFile"
|
"Warning"
|
"Error"
|
"ErrorSelfNotInGroup"
|
"MsgsChanged"
|
"ReactionsChanged"
|
"IncomingReaction"
|
"IncomingMsg"
|
"IncomingMsgBunch"
|
"MsgsNoticed"
|
"MsgDelivered"
|
"MsgFailed"
|
"MsgRead"
|
"MsgDeleted"
|
"ChatModified"
|
"ChatEphemeralTimerModified"
|
"ContactsChanged"
|
"LocationChanged"
|
"ConfigureProgress"
|
"ImexProgress"
|
"ImexFileWritten"
|
"SecurejoinInviterProgress"
|
"SecurejoinJoinerProgress"
|
"ConnectivityChanged"
|
"SelfavatarChanged"
|
"ConfigSynced"
|
"WebxdcRealtimeData"
|
"WebxdcRealtimeAdvertisementReceived"
|
"WebxdcInstanceDeleted"
|
"AccountsBackgroundFetchDone"
|
"ChatlistChanged"
|
"ChatlistItemChanged"
|
"EventChannelOverflow"
|
"ALL"
Parameters
event:
E
Rest
...
args:
Arguments
<
Events
[
E
]
>
Returns
BaseDeltaChat
<
Transport
>
event
Loop
event
Loop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Context
Events
get
Context
Events
(
account_id
:
number
)
:
TinyEmitter
<
ContextEvents
>
Parameters
account_id:
number
Returns
TinyEmitter
<
ContextEvents
>
list
Accounts
list
Accounts
(
)
:
Promise
<
Account
[]
>
Returns
Promise
<
Account
[]
>
off
off
<
E
>
(
event
:
E
, callback
?:
Events
[
E
]
)
:
BaseDeltaChat
<
Transport
>
Type Parameters
E
extends
"WebxdcStatusUpdate"
|
"Info"
|
"SmtpConnected"
|
"ImapConnected"
|
"SmtpMessageSent"
|
"ImapMessageDeleted"
|
"ImapMessageMoved"
|
"ImapInboxIdle"
|
"NewBlobFile"
|
"DeletedBlobFile"
|
"Warning"
|
"Error"
|
"ErrorSelfNotInGroup"
|
"MsgsChanged"
|
"ReactionsChanged"
|
"IncomingReaction"
|
"IncomingMsg"
|
"IncomingMsgBunch"
|
"MsgsNoticed"
|
"MsgDelivered"
|
"MsgFailed"
|
"MsgRead"
|
"MsgDeleted"
|
"ChatModified"
|
"ChatEphemeralTimerModified"
|
"ContactsChanged"
|
"LocationChanged"
|
"ConfigureProgress"
|
"ImexProgress"
|
"ImexFileWritten"
|
"SecurejoinInviterProgress"
|
"SecurejoinJoinerProgress"
|
"ConnectivityChanged"
|
"SelfavatarChanged"
|
"ConfigSynced"
|
"WebxdcRealtimeData"
|
"WebxdcRealtimeAdvertisementReceived"
|
"WebxdcInstanceDeleted"
|
"AccountsBackgroundFetchDone"
|
"ChatlistChanged"
|
"ChatlistItemChanged"
|
"EventChannelOverflow"
|
"ALL"
Parameters
event:
E
Optional
callback:
Events
[
E
]
Returns
BaseDeltaChat
<
Transport
>
on
on
<
E
>
(
event
:
E
, callback
:
Events
[
E
]
, ctx
?:
any
)
:
BaseDeltaChat
<
Transport
>
Type Parameters
E
extends
"WebxdcStatusUpdate"
|
"Info"
|
"SmtpConnected"
|
"ImapConnected"
|
"SmtpMessageSent"
|
"ImapMessageDeleted"
|
"ImapMessageMoved"
|
"ImapInboxIdle"
|
"NewBlobFile"
|
"DeletedBlobFile"
|
"Warning"
|
"Error"
|
"ErrorSelfNotInGroup"
|
"MsgsChanged"
|
"ReactionsChanged"
|
"IncomingReaction"
|
"IncomingMsg"
|
"IncomingMsgBunch"
|
"MsgsNoticed"
|
"MsgDelivered"
|
"MsgFailed"
|
"MsgRead"
|
"MsgDeleted"
|
"ChatModified"
|
"ChatEphemeralTimerModified"
|
"ContactsChanged"
|
"LocationChanged"
|
"ConfigureProgress"
|
"ImexProgress"
|
"ImexFileWritten"
|
"SecurejoinInviterProgress"
|
"SecurejoinJoinerProgress"
|
"ConnectivityChanged"
|
"SelfavatarChanged"
|
"ConfigSynced"
|
"WebxdcRealtimeData"
|
"WebxdcRealtimeAdvertisementReceived"
|
"WebxdcInstanceDeleted"
|
"AccountsBackgroundFetchDone"
|
"ChatlistChanged"
|
"ChatlistItemChanged"
|
"EventChannelOverflow"
|
"ALL"
Parameters
event:
E
callback:
Events
[
E
]
Optional
ctx:
any
Returns
BaseDeltaChat
<
Transport
>
once
once
<
E
>
(
event
:
E
, callback
:
Events
[
E
]
, ctx
?:
any
)
:
BaseDeltaChat
<
Transport
>
Type Parameters
E
extends
"WebxdcStatusUpdate"
|
"Info"
|
"SmtpConnected"
|
"ImapConnected"
|
"SmtpMessageSent"
|
"ImapMessageDeleted"
|
"ImapMessageMoved"
|
"ImapInboxIdle"
|
"NewBlobFile"
|
"DeletedBlobFile"
|
"Warning"
|
"Error"
|
"ErrorSelfNotInGroup"
|
"MsgsChanged"
|
"ReactionsChanged"
|
"IncomingReaction"
|
"IncomingMsg"
|
"IncomingMsgBunch"
|
"MsgsNoticed"
|
"MsgDelivered"
|
"MsgFailed"
|
"MsgRead"
|
"MsgDeleted"
|
"ChatModified"
|
"ChatEphemeralTimerModified"
|
"ContactsChanged"
|
"LocationChanged"
|
"ConfigureProgress"
|
"ImexProgress"
|
"ImexFileWritten"
|
"SecurejoinInviterProgress"
|
"SecurejoinJoinerProgress"
|
"ConnectivityChanged"
|
"SelfavatarChanged"
|
"ConfigSynced"
|
"WebxdcRealtimeData"
|
"WebxdcRealtimeAdvertisementReceived"
|
"WebxdcInstanceDeleted"
|
"AccountsBackgroundFetchDone"
|
"ChatlistChanged"
|
"ChatlistItemChanged"
|
"EventChannelOverflow"
|
"ALL"
Parameters
event:
E
callback:
Events
[
E
]
Optional
ctx:
any
Returns
BaseDeltaChat
<
Transport
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@deltachat/jsonrpc-
client
RPC
T
yerpc
Base
Delta
Chat
constructor
account?
context
Emitters
event
Task
rpc
transport
emit
event
Loop
get
Context
Events
list
Accounts
off
on
once
Generated using
TypeDoc