Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
T1B0 committed Jul 4, 2024
1 parent 214240c commit 263f271
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 1,33 @@
# iggy-bin

iggy-bin is an unofficial node.js client for [iggy-rs](https://iggy.rs/)'s binary protocol, written with typescript. it currently only support tcp transport.
iggy-bin is an unofficial node.js client for [iggy-rs](https://iggy.rs/)'s binary protocol, written with typescript. it currently only support tcp & tls transports.

## howto
diclaimer: although all iggy commands & basic client/stream are implemented this is still a WIP provided as is and has still a long way to go to be considered "battle tested".

## install

```
$ npm i iggy-bin
```

## basic usage

```ts
import { Client } from 'iggy-bin';

const credentials = { username: 'iggy', password: 'iggy' };

const c = new Client({
transport: 'TCP',
options: { port: 8090, host: '127.0.0.1' },
credentials
});

const stats = await c.system.getStats();
```


## use sources

### Install
```
Expand Down

0 comments on commit 263f271

Please sign in to comment.