0.3.4 • Published 2 months ago

aurora-rpc-client v0.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

AuroraRPC-Client

Description

This is the client implementation for Aurora RPC.
The client uses the ws library for Node.js / native WebSocket for the browser.
The server implementation is available in AuroraRPC-Server.

Installation

npm i aurora-rpc-client

Usage

import { Client } from 'aurora-rpc-client';

// --- Connect ---

const client = new Client("ws://localhost:8080")
client.connect()

// or

const client = new Client()
client.connect("ws://localhost:8080")

// ---

const result = await client.send('hello')
console.log(result) // "Hello Aurora RPC!"
0.3.4

2 months ago

0.3.2

9 months ago

0.3.3

9 months ago

0.3.0

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.4

12 months ago

0.3.1

12 months ago

0.1.3

12 months ago

0.1.2

2 years ago