@leosprograms/syn-client
v0.400.0-rc.6
Published
A simple wrapper class that implements the interface for the `syn` zome.
Downloads
590
Readme
@leosprograms/syn-client
A simple wrapper class that implements the interface for the syn
zome.
Usage
import { AppWebsocket, AppWebsocket } from '@holochain/client';
import { SynClient } from '@leosprograms/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();