@holochain-syn/client
TypeScript icon, indicating that this package has built-in type declarations

0.400.0-dev.0 • Public • Published

@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();

Readme

Keywords

none

Package Sidebar

Install

npm i @holochain-syn/client

Weekly Downloads

3

Version

0.400.0-dev.0

License

none

Unpacked Size

44 kB

Total Files

15

Last publish

Collaborators

  • zippy314
  • guillem.cordoba