@holochain-syn/client
v0.400.0-rc.2
Published
A simple wrapper class that implements the interface for the `syn` zome.
Downloads
248
Keywords
Readme
@holochain-syn/client
A simple wrapper class that implements the interface for the syn
zome.
Usage
import { AppWebsocket, AppWebsocket } from '@holochain/client';
import { SynClient } from '@holochain-syn/client';
const appWs = await AppWebsocket.connect(url);
const client = await AppWebsocket.connect(appWs, 'syn-app-id')
const client = new SynClient(client, 'syn-zome-name', 'syn-role-name', signal =>
handleSignal(this.#workspace, signal)
);
const sessionInfo = await client.newSession();