Skip to content

Defined in: zaun/js/index.d.ts:938

new Client(): Client

Client

readonly communities: Collection<string, Community>

Defined in: zaun/js/index.d.ts:944


readonly raw: RawClient

Defined in: zaun/js/index.d.ts:942


readonly saved: Collection<string, Community>

Defined in: zaun/js/index.d.ts:946

The communities kept in the store, known as soon as start resolves.


readonly simplex: SimplexClient

Defined in: zaun/js/index.d.ts:943

close(): Promise<void>

Defined in: zaun/js/index.d.ts:955

Promise<void>


community(id): Community

Defined in: zaun/js/index.d.ts:947

string

Community


createCommunity(options): Promise<Community>

Defined in: zaun/js/index.d.ts:949

string

string

string

string

Promise<Community>


join(invite, displayName?): Promise<Community>

Defined in: zaun/js/index.d.ts:948

string

string

Promise<Community>


off<E>(name, f): this

Defined in: zaun/js/index.d.ts:952

E extends keyof ClientEvents

E

(…args) => void

this


on<E>(name, f): this

Defined in: zaun/js/index.d.ts:950

E extends keyof ClientEvents

E

(…args) => void

this


once<E>(name, f?): Promise<ClientEvents[E][0]>

Defined in: zaun/js/index.d.ts:951

E extends keyof ClientEvents

E

(…args) => void

Promise<ClientEvents[E][0]>


save(): Uint8Array

Defined in: zaun/js/index.d.ts:953

Uint8Array


saveChanges(): Uint8Array

Defined in: zaun/js/index.d.ts:954

Uint8Array


setPresence(status, activity?): boolean

Defined in: zaun/js/index.d.ts:941

presence: status and activity in every community; false when either is not valid.

"online" | "idle" | "dnd" | "invisible"

Activity

boolean


static start(options): Promise<Client>

Defined in: zaun/js/index.d.ts:939

StartOptions

Promise<Client>