Skip to content

A Javascript library for communicating with Holochain Conductor's WebSocket APIs

Notifications You must be signed in to change notification settings

spartan-holochain-counsel/holochain-websocket-js

Repository files navigation

Holochain WebSocket Client

A Javascript library for communicating with Holochain's Websocket API

Overview

Features

  • Request/Response handling
  • Detailed error classes

Install

npm i @spartan-hc/holochain-websocket

Basic Usage

App Interface

Each example assumes this code is present

import { Connection } from '@spartan-hc/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

About

A Javascript library for communicating with Holochain Conductor's WebSocket APIs

Resources

Stars

Watchers

Forks

Packages

No packages published