Class BaseDeltaChat<Transport>

Type Parameters

Hierarchy

Constructors

  • Type Parameters

    Parameters

    • transport: Transport
    • startEventLoop: boolean

    Returns BaseDeltaChat<Transport>

Properties

account?: Account
contextEmitters: {
    [key: number]: TinyEmitter<ContextEvents>;
} = {}

Type declaration

  • [key: number]: TinyEmitter<ContextEvents>
eventTask: Promise<void>
transport: Transport

Methods

  • 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>

  • Parameters

    • account_id: number

    Returns TinyEmitter<ContextEvents>

  • 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>

  • 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>

  • 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>

Generated using TypeDoc