Class AttachmentsTransferClient
Properties
Private #_state
#_state: State = State.NEW Private #attachment
Private #connection
Private #notifier
Methods
Private #notifyMessageAttachmentState
- #notifyMessageAttachmentState(attachment, state): void
Returns void
disconnect
- disconnect(): Promise<void>
Returns Promise<void>
downloadAttachment
- downloadAttachment(url): Promise<Attachment>
Static Private #getConnectionConfigForAnonymousUser
- #getConnectionConfigForAnonymousUser(url, timeout?): {
appName: InternalApi;
custom: {
nickname: string;
password: string;
username: string;
};
failedProbesThreshold: number;
pingInterval: number;
timeout: number;
url: string;
} Parameters
- url: string
Optional timeout: number
Returns {
appName: InternalApi;
custom: {
nickname: string;
password: string;
username: string;
};
failedProbesThreshold: number;
pingInterval: number;
timeout: number;
url: string;
}
custom: {
nickname: string;
password: string;
username: string;
}
nickname: string
password: string
username: string
failedProbesThreshold: number
pingInterval: number
timeout: number
url: string