mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-27 17:58:47 +00:00
nodejs: load libsimplex at runtime per backend
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
[**simplex-chat**](README.md)
|
||||
|
||||
***
|
||||
|
||||
[simplex-chat](README.md) / [core](Namespace.core.md) / loadLibrary
|
||||
|
||||
# Function: loadLibrary()
|
||||
|
||||
> **loadLibrary**(`backend`): `Promise`\<`void`\>
|
||||
|
||||
Defined in: [src/core.ts:13](../src/core.ts#L13)
|
||||
|
||||
Resolve (downloading on first use) and load libsimplex for the backend.
|
||||
One libsimplex per process: the Haskell runtime is initialized once, and another backend is rejected.
|
||||
|
||||
## Parameters
|
||||
|
||||
### backend
|
||||
|
||||
[`Backend`](core.TypeAlias.Backend.md)
|
||||
|
||||
## Returns
|
||||
|
||||
`Promise`\<`void`\>
|
||||
Reference in New Issue
Block a user