centrifuge 2.8.4 → 2.8.5
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/.github/FUNDING.yml +3 -0
- package/CHANGELOG.md +6 -0
- package/README.md +3 -7
- package/dist/centrifuge.d.ts +2 -1
- package/dist/centrifuge.js +1 -1
- package/dist/centrifuge.js.map +1 -1
- package/dist/centrifuge.min.js +1 -1
- package/dist/centrifuge.min.js.map +1 -1
- package/dist/centrifuge.protobuf.js +1 -1
- package/dist/centrifuge.protobuf.js.map +1 -1
- package/dist/centrifuge.protobuf.min.js +1 -1
- package/dist/centrifuge.protobuf.min.js.map +1 -1
- package/package.json +3 -3
- package/src/centrifuge.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,18 +19,14 @@ This client can connect to [Centrifuge](https://github.com/centrifugal/centrifug
|
|
|
19
19
|
|
|
20
20
|
## Install and quick start
|
|
21
21
|
|
|
22
|
-
The simplest way to
|
|
23
|
-
|
|
24
|
-
```html
|
|
25
|
-
<script src="centrifuge.js"></script>
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Or using cdn (replace `X` to concrete version number):
|
|
22
|
+
The simplest way is to include `centrifuge-js` into your web page using `script` tag. For example, from CDN (replace `X` to concrete version number):
|
|
29
23
|
|
|
30
24
|
```html
|
|
31
25
|
<script src="https://cdn.jsdelivr.net/gh/centrifugal/centrifuge-js@2.X.X/dist/centrifuge.min.js"></script>
|
|
32
26
|
```
|
|
33
27
|
|
|
28
|
+
Or check out [centrifuge-js on cdnjs.com](https://cdnjs.com/libraries/centrifuge).
|
|
29
|
+
|
|
34
30
|
Client is also available via `npm`:
|
|
35
31
|
|
|
36
32
|
```bash
|
package/dist/centrifuge.d.ts
CHANGED
package/dist/centrifuge.js
CHANGED
|
@@ -568,7 +568,7 @@ var Centrifuge = /*#__PURE__*/function (_EventEmitter) {
|
|
|
568
568
|
if (!this._websocketSupported()) {
|
|
569
569
|
this._debug('No Websocket support and no SockJS configured, can not connect');
|
|
570
570
|
|
|
571
|
-
|
|
571
|
+
throw new Error('No Websocket support and no SockJS configured, can not connect');
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
if (this._config.websocket !== null) {
|