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

Releases: ClusterWS/ClusterWS

Release 3.2.0

09 Aug 08:22
46cb4ef
Compare
Choose a tag to compare

This release does not contain any breaking changes.

Fixes

  • Stabilize UWS and lock it on version 10.148.1

Improvements

  • Added new middleware hooks check out wiki page
  • Better console output with improved colors and proper division between errors and warnings

Boost

20 Jun 09:43
e9b49ae
Compare
Choose a tag to compare

This release contains no breaking changes for the users, but has a lot of improvements into scaling strategy and stability.

New Features

Added setWatcher and removeWatcher function find more about it in here

Fixes & Improvements

Broker module have been divided into 2 different modules Global and Internal this allow better configurations to the communications system

Fixed bug with scaling across different machines where messages would be doubled if you have more then 1 internal broker

Improved performance for Internal broker from now on messages wont be emitted if server is not subscribed to the channel.

Unit tests

From now on project will be tested before release and we will try to cove everything with unit testings.

Hope you will like this release :)

XPS :)

06 May 00:29
e788de7
Compare
Choose a tag to compare

This release gives huge improvements in ping system also uws JavaScript modules was rewritten and now part of ClusterWS modules (removed some things which never used in the library). How ever bindings are still used form uws official library to be always up to date.

Breaking changes

  • Ping System (Android and IOS libraries will not wok with new system till we update them to v3.0.0+)

New Features

  • Encode Decode engine now u will be able to use for example msgpack or any other things (even your own) to encode messages. Check it in documentation.

Temporary for examples check Server and Client code

Later Coming

You better track this part from Projects

Merge

29 Mar 12:15
f903e65
Compare
Choose a tag to compare

Hi everyone, in this release main update is that uws was merged in to the core of ClusterWS (the reason is that main repository of uws for Node was removed, even if source is still available on npm i would better build my own source, bindings just in case if owner of uWS will want to completely remove it).

As a result of merging i have regenerate bindings with newest versions of Node.js for each platforms and removes all bindings which are lower than Node 6.0 . Also maid some additional changes in the source of uws.js, which gives some boost, there are still a lot of things left to do so)

Next version is going to be 3.0 which should bring some interesting updates:)

Hope you will like this release

Buuuuuuum !

09 Mar 10:59
f0c2538
Compare
Choose a tag to compare

This release does not include a lot of new features, mainly code optimisation and size reduction of the library.

New option is available now but it is still under tests and may not be stable to use in across different servers communications yet:

host: {string}

for more info check ClusterWS Available Configurations in Installation and Configuration guide.

Have a great day )

Marshmello

12 Feb 23:48
028cdc3
Compare
Choose a tag to compare

Good time of the day everyone who is reading this, hope you will like version 2.0.0 there are lots of underhood changes which do not really affect you but give a good performance boost.

Braking Changes

  • Removed Option brokerPort as now you can add as many brokers as you want, check New Features section.
  • Completly redesigned scaleOptions now it is horizontalScaleOptions, check New Features section.
  • Middleware renamed:
onsubscribe => onSubscribe
onpublish => onPublish

New Features

  • Added new options:
brokers:  {number} amount of brokers you want to run on the server
brokersPorts: {string[]} arrays of ports to each worker (work automatically change it only if you know why),
horizontalScaleOptions : {object} connect to different servers
  • Now you can create as many brokers on the as you want by simply adding options brokers (note: each broker is separate process the same as worker so for example if you have 4 cpu you can create 2 brokers and 2 workes)
  • New way to scale across different machines (guides will be added a bit later as there are lots of changes)

Internal changes

  • Completly changed the way how Pub/Sub works
  • Redesign Machine scale
  • Improve message decode/encode system
  • Improved TypeScript support

Please go through guides to find out how to use all of that.

Super Hard Name

17 Jan 13:20
6ec60d2
Compare
Choose a tag to compare

In this release, we have added some middleware to make your server development easier. Also some typescript fixes.

Please check Middleware guide for more information.

Just to note there are no breaking changes so you don't need to change anything 😄

New Year's Release

31 Dec 07:11
e7e6e5d
Compare
Choose a tag to compare

During developing 1.5.0 we made a lot of build process changes which allowed us to build framework more efficient by using rollup instead of webpack. Currently, size of ClusterWS server library is under 12 kb against 17 kb in the previous version.

There are however breaking change:

  • Changed the way how you import framework in your code
// Old
const ClusterWS = require('clusterws').ClusterWS

// New
const ClusterWS = require('clusterws')
  • Rename some options
secureProtocolOptions -> tlsOptions
machineScale -> scaleOptions
  • Rename exposed variable
// Old
function Worker() {
    const httpServer = this.httpServer
    const socketServer = this.socketServer
}

// New
function Worker() {
    const wss = this.wss  // websocket server
    const server = this.server  // http and https server
}

Except breaking changes:

  • Improved binary messaging between ClusterWS server and clients
  • Bug fixes for Broker
  • Now tlsOptions are the same as Node.js https options

That is basically all, hope you will enjoy this library.