iosignal 2.1.0 → 2.2.0

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.
package/README.md CHANGED
@@ -71,7 +71,7 @@ Example of a client calling the reply API
71
71
 
72
72
  ```js
73
73
  // web browser api client example
74
- <script src="../dist/iosignal.min.js"></script>
74
+ <script src="../dist/io.min.js"></script>
75
75
  <script>
76
76
  const io = new IO('ws://localhost:7777')
77
77
 
@@ -99,12 +99,12 @@ Fri, 09 Feb 2024 14:24:37 GMT
99
99
  ### NodeJS Client
100
100
  ```js
101
101
  // ESM
102
- import { IOWS } from "iosignal"
102
+ import { IO } from "iosignal"
103
103
 
104
104
  // CJS
105
- // const { IOWS } = require('iosignal')
105
+ // const { IO } = require('iosignal')
106
106
 
107
- const io = new IOWS('wss://io.iosignal.net/ws')
107
+ const io = new IO('wss://io.iosignal.net/ws')
108
108
 
109
109
  io.on('ready', ()=>{
110
110
  console.log('ready cid:', io.cid)
@@ -122,11 +122,11 @@ Fri, 09 Feb 2024 14:24:37 GMT
122
122
  ```
123
123
 
124
124
  ### Browser Client : UMD(IIFE)
125
- - local file: "./dist/iosignal.min.js"
126
- - CDN: https://cdn.jsdelivr.net/npm/iosignal@2.1.0/dist/iosignal.min.js
125
+ - local file: "./dist/io.min.js"
126
+ - CDN: https://cdn.jsdelivr.net/npm/iosignal@2.2.0/dist/io.min.js
127
127
  ```html
128
128
  <html>
129
- <script src="../dist/iosignal.min.js"></script>
129
+ <script src="../dist/io.min.js"></script>
130
130
  <script>
131
131
  console.log('IO', IO) // default global variable name is IO
132
132
 
@@ -177,14 +177,14 @@ Fri, 09 Feb 2024 14:24:37 GMT
177
177
 
178
178
  ### Browser client : ESM
179
179
 
180
- - local file: "./dist/iosignal.js"
181
- - CDN: https://cdn.jsdelivr.net/npm/iosignal@2.1.0/dist/iosignal.js
180
+ - local file: "./dist/io.js"
181
+ - CDN: https://cdn.jsdelivr.net/npm/iosignal@2.2.0/dist/io.js
182
182
 
183
183
  ```html
184
184
  <html>
185
185
 
186
186
  <script type="module">
187
- import IO from "../dist/iosignal.js"
187
+ import IO from "../dist/io.js"
188
188
 
189
189
  const io = new IO('wss://io.iosignal.net/ws')
190
190
  io.listen('channel#topic', (...args)={