react-wsclient 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +8 -1
package/README.md CHANGED
@@ -44,3 +44,11 @@ const App = () => {
44
44
  );
45
45
  };
46
46
  ```
47
+
48
+ ## Features
49
+
50
+ - Multiple connections using multiple `WSClientProvider`s
51
+ - Retry logic when connections from the server drop
52
+ - Filtering, so calls to the hook from many places in your app are subscribed only to messages meeting the criteria you define in the filter
53
+ - JSON parsing for messages containing JSON strings - you can also opt out of JSON parsing with one flag on the provider
54
+ - Parsing occurs once in the message event and is passed after parse to both the message and filter handler params of the hook.
package/package.json CHANGED
@@ -1,8 +1,15 @@
1
1
  {
2
2
  "name": "react-wsclient",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
+ "keywords": [
7
+ "react",
8
+ "websocket",
9
+ "react websocket",
10
+ "ws",
11
+ "react ws"
12
+ ],
6
13
  "exports": {
7
14
  ".": "./src/index.js"
8
15
  },