Skip to content

Commit

Permalink
Checks & cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Oct 11, 2018
1 parent bbe92bd commit 1b57c0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rpc-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Generic transport providers to handle the transport of method calls to and from

## Provider Selection

There are two flavours of the providers provided, one allowing for using HTTP as a transport machanism, the other using WebSockets. It is generally recommended to use the [[WsProvider]] since in addition to standard calls, it allows for subscriptions where nes changes can be pushed from the node to the client.
There are two flavours of the providers provided, one allowing for using HTTP as a transport machanism, the other using WebSockets. It is generally recommended to use the [[WsProvider]] since in addition to standard calls, it allows for subscriptions where all changes to state can be pushed from the node to the client.

Both providers are usable (as is the API), in both browser-based and Node.js environments. Polyfills for unsupported functionality is automatically applied based on feature-detection.
Both providers are usable (as is the API), in both browser-based and Node.js environments. Polyfills for unsupported functionality are automatically applied based on feature-detection.

## Usage

Expand All @@ -18,7 +18,7 @@ yarn add @polkadot/rpc-provider

WebSocket Initialisation -

```js
```javascript
import WsProvider from '@polkadot/rpc-provider/ws';

// this is the actual default endpoint
Expand All @@ -30,7 +30,7 @@ console.log('client version', version);

HTTP Initialisation -

```js
```javascript
import { HttpProvider } from '@polkadot/rpc-provider';

// this is the actual default endpoint
Expand Down

0 comments on commit 1b57c0a

Please sign in to comment.