0.3.5 • Published 6 months ago

aurora-rpc-client v0.3.5

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

AuroraRPC-Client

!CAUTION This package is moved to AuroraRPC monorepo. Please use @aurora-rpc/client instead.

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.5

6 months ago

0.3.4

1 year ago

0.3.2

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.3.1

2 years ago

0.1.3

2 years ago

0.1.2

3 years ago