mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-03 08:52:36 +00:00
* nodejs: add tests to library * new tests * remove message splitting * fix race * docs * replace extract-zip with yauzl that it wraps (high severity issue) * fix ci tests * skip server tests on macos and win unless SMP_SERVER is set * fix win test * fix win test --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
32 lines
509 B
Markdown
32 lines
509 B
Markdown
[**simplex-chat**](README.md)
|
|
|
|
***
|
|
|
|
[simplex-chat](README.md) / [core](Namespace.core.md) / chatWriteFile
|
|
|
|
# Function: chatWriteFile()
|
|
|
|
> **chatWriteFile**(`ctrl`, `path`, `buffer`): `Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>
|
|
|
|
Defined in: [src/core.ts:75](../core.ts#L75)
|
|
|
|
Write buffer to encrypted file
|
|
|
|
## Parameters
|
|
|
|
### ctrl
|
|
|
|
`bigint`
|
|
|
|
### path
|
|
|
|
`string`
|
|
|
|
### buffer
|
|
|
|
`ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\>
|
|
|
|
## Returns
|
|
|
|
`Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>
|