This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
Releases: ClusterWS/ClusterWS-Client-JS
Releases · ClusterWS/ClusterWS-Client-JS
XPS :)
Merge
Badaboom !
Hi every one an this is 2.1.0.
Braking Changes
Properties Replacement, some of the clusterws settings were moved and renamed:
// Now instead of this options passed separately:
reconnectionAttempts,
reconnectionIntervalMin,
reconnectionIntervalMax
// We pass them as one object:
autoReconnectOptions?: {
attempts?: number
minInterval?: number
maxInterval?: number
}
please check Installation and Configuration guide for Available configurations.
Underhood Changes
- Improved re connection (much more stable than old version)
- Updated code style
- Reduced size
Hope you will like this release :)
New Year's Release
During developing 1.5.0
we made a lot of build process changes, as well as some code improvements under the hood, build changes allowed us to build the library more efficient by using rollup
instead of webpack
. Currently, size of ClusterWS client js library is under 5 kb against 7 kb in the previous version.
There are however some braking change:
- Changed the way how you import library (for npm usage only) in your code
// Old
const ClusterWS = require('clusterws-client-js').ClusterWS
// New
const ClusterWS = require('clusterws-client-js')
- Removed
port
andsecure
params, now you can simple modify url:
// Old
let socket= new ClusterWS({
url: 'localhost',
port: 80,
secure: true
})
// New
let socket = new ClusterWS({
url: 'wss://localhost:80'
})
That is basically all, hope you will enjoy this library.