Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Releases: ClusterWS/ClusterWS-Client-JS

XPS :)

06 May 03:24
f63a0f9
Compare
Choose a tag to compare

Check main ClusterWS notes for more info.

Merge

29 Mar 12:16
36b743b
Compare
Choose a tag to compare

All info is included in to the ClusterWS server repo, client side did not have much changes except of improving in re connection.

Badaboom !

10 Mar 09:06
ff2abfc
Compare
Choose a tag to compare

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

31 Dec 07:24
5e299e3
Compare
Choose a tag to compare

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 and secure 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.