Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit bc297af

Browse files
authored
Merge pull request #230 from streamr-dev/readme-tidyup
Readme Tidyup
2 parents 76b01a3 + ab27b92 commit bc297af

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
Streamr JavaScript Client
88
</h1>
99

10-
By using this client, you can easily interact with the [Streamr](https://streamr.network) API from JavaScript-based environments, such as browsers and [node.js](https://nodejs.org). You can, for example, subscribe to real-time data in streams, produce new data to streams, and create new streams.
10+
By using this client, you can easily interact with the [Streamr](https://streamr.network) API from JavaScript-based environments, such as browsers and [node.js](https://nodejs.org). You can, for example, subscribe to real-time data in streams, produce new data to streams, and create new streams. The client uses websockets for producing and consuming messages to/from streams. It should work in all modern browsers.
1111

12-
The client uses websockets for producing and consuming messages to/from streams. It should work in all modern browsers.
12+
Please see the [API Docs](https://streamr-dev.github.io/streamr-client-javascript/) for more detailed documentation.
1313

1414
[![Build Status](https://travis-ci.com/streamr-dev/streamr-client-javascript.svg?branch=master)](https://travis-ci.com/streamr-dev/streamr-client-javascript)
1515

@@ -21,7 +21,7 @@ The client uses websockets for producing and consuming messages to/from streams.
2121

2222
## TOC
2323

24-
[Installation](#installation) · [Usage](#usage) · [API Docs](#api-docs) · [Client options](#client-options) · [Authentication options](#authentication-options) · [Message handler callback](#message-handler-callback) · [StreamrClient object](#streamrclient-object) · [Stream object](#stream-object) · [Subscription options](#subscription-options) · [Data Unions](#data-unions) · [Utility functions](#utility-functions) · [Events](#binding-to-events) · [Partitioning](#partitioning) · [Logging](#logging) · [NPM Publishing](#publishing-latest)
24+
[Installation](#installation) · [Usage](#usage) · [API Docs](#API-docs) · [Client options](#client-options) · [Authentication](#authentication) · [Managing subscriptions](#managing-subscriptions) · [Stream API](#stream-api) · [Subscription options](#subscription-options) · [Data Unions](#data-unions) · [Utility functions](#utility-functions) · [Events](#events) · [Stream Partitioning](#stream-partitioning) · [Logging](#logging) · [NPM Publishing](#publishing-latest)
2525

2626

2727
## Installation
@@ -34,14 +34,6 @@ npm install streamr-client
3434

3535
Node v14 or higher is recommended if you intend to use the client in a Node environment. For example, inside a script.
3636

37-
## API Docs
38-
39-
We have automatically generated API documentation available [here](https://streamr-dev.github.io/streamr-client-javascript/). These docs are generated from the repository TypeScript source code. They can also be rebuilt locally via:
40-
41-
```
42-
npm run docs
43-
```
44-
4537
## Usage
4638

4739
Here are some quick examples. More detailed examples for the browser and node.js can be found [here](https://github.com/streamr-dev/streamr-client/tree/master/examples).
@@ -139,9 +131,13 @@ await stream.publish(msg)
139131

140132
----
141133

142-
# Docs
134+
## API Docs
143135

144-
Please see the [API Docs](https://streamr-dev.github.io/streamr-client-javascript/) for auto-generated documentation.
136+
The [API docs](https://streamr-dev.github.io/streamr-client-javascript/) are automatically generated from the TypeScript source code. They can also be rebuilt locally via:
137+
138+
```
139+
npm run docs
140+
```
145141

146142
## Client options
147143

@@ -163,9 +159,7 @@ Please see the [API Docs](https://streamr-dev.github.io/streamr-client-javascrip
163159

164160
## Authentication options
165161

166-
Note: **Authenticating with an API key has been deprecated.**
167-
168-
Note: **Support for email/password authentication will be dropped in the future and cryptographic keys/wallets will be the only supported method.**
162+
Note: **Authenticating with an API key has been deprecated. Cryptographic keys/wallets is the only supported authentication method.**
169163

170164
If you don't have an Ethereum account you can use the utility function `StreamrClient.generateEthereumAccount()`, which returns the address and private key of a fresh Ethereum account.
171165

@@ -347,7 +341,7 @@ All the below functions return a Promise which gets resolved with the result.
347341

348342
## Data Unions
349343

350-
This library provides functions for working with Data Unions.
344+
This library provides functions for working with Data Unions. Please see the [API Docs](https://streamr-dev.github.io/streamr-client-javascript/) for auto-generated documentation on each Data Union endpoint.
351345

352346
To deploy a new DataUnion with default [deployment options](#deployment-options):
353347
```js
@@ -553,7 +547,7 @@ client.on('connected', () => {
553547
| resent | [ResendResponseResent](https://github.com/streamr-dev/streamr-client-protocol-js/blob/master/src/protocol/control_layer/resend_response_resent/ResendResponseResentV1.js) | Fired after `resending` when the subscription has finished resending and message has been processed |
554548
| error | Error object | Reports errors, for example problems with message content |
555549

556-
## Partitioning
550+
## Stream Partitioning
557551

558552
Partitioning (sharding) enables streams to scale horizontally. This section describes how to use partitioned streams via this library. To learn the basics of partitioning, see [the docs](https://streamr.network/docs/streams#partitioning).
559553

0 commit comments

Comments
 (0)