0.1.6 • Published 1 year ago

@whi/holochain-websocket v0.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

npm.io

Holochain Client

A Javascript library for communicating with Holochain's Websocket API

npm.io npm.io npm.io

Overview

Features

  • Request/Response handling
  • Detailed error classes

Install

npm i @whi/holochain-websocket

Basic Usage

App Interface

Each example assumes this code is present

import { Connection } from '@whi/holochain-websocket';

const admin_interface_port = 45678;

const conn = new Connection( admin_interface_port );

Example

let agent_hash = await conn.request("generate_agent_pub_key");

API Reference

See docs/API.md

Contributing

See CONTRIBUTING.md