Skip to content

Releases: SocketCluster/socketcluster-client

v16.0.1

01 Mar 11:53
Compare
Choose a tag to compare

v13.0.0

13 May 10:20
Compare
Choose a tag to compare
  • An error event will be emitted on the socket if the user tries to emit a reserved event on that socket.
  • Fixed a bug with autoConnect: false being ignored when socketCluster.create(...) was called a second time and it tried to reuse the same multiplexed socket as before (the issue could only happen if multiplex was true in both calls) - In the second call it would try to auto connect; even though autoConnect was false.
  • Renamed SCSocket to SCClientSocket.

v12.0.0

29 Apr 18:59
Compare
Choose a tag to compare

Breaking changes:

  • The 'authenticate' event will now also trigger when the authToken changes (not just the first time) - This change was done so that the client side SCSocket would be more consistent with the behavior of the server side SCSocket. This change affects scenarios where one user's authToken overrides a previously logged in user's authToken (e.g. If a new user logs in while another user account is already logged into the same machine/browser).
  • The authTokenChange event was removed; this event is no longer necessary since it is now equivalent to listening to both the authenticate and deauthenticate events.

v11.2.0

24 Apr 22:48
Compare
Choose a tag to compare
  • Added support for new pingTimeoutDisabled option on the client which can be used to prevent the client socket from disconnecting itself because of a ping timeout.
  • Improved memory efficiency by clearing all pending timeouts as soon as the underlying transport socket closes (instead of allowing them to timeout on their own).

v11.0.0

27 Mar 21:43
Compare
Choose a tag to compare
  • Throw error if the user passes invalid combinations of hostname, host and port arguments.
  • Added nore tests.

v10.1.2

18 Mar 13:33
1825673
Compare
Choose a tag to compare
  • More detailed socket close messages.
  • Upgraded dependencies.

v10.0.0

14 Feb 23:15
Compare
Choose a tag to compare
  • The socketCluster.connect(options) method was renamed to socketCluster.create(options) (the connect alias is still available but deprecated).
  • Calling socket.destroy() is now supported and is the same as calling socketCluster.destroy(socket).
  • Non-multiplexed sockets now also show up in the socketCluster.clients (previously called socketCluster.connections) object/map.

Breaking changes:

  • The socketCluster.connections object was renamed to socketCluster.clients
  • The socketCluster.destroy(...) method now takes a socket object as argument (instead of an options object).

v9.0.2

12 Dec 13:58
Compare
Choose a tag to compare

Fixed issue with missing callback error in specific situations.

v9.0.0

03 Dec 23:17
Compare
Choose a tag to compare

Added a new close event which triggers on both disconnect and connectAbort.

v8.0.2

03 Dec 23:18
Compare
Choose a tag to compare

Improved handling of badly formatted message.