This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
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.