Skip to content

Releases: centrifugal/centrifuge-js

2.8.5

04 May 07:22
de6a393
Compare
Choose a tag to compare
  • fix typing of subscribe error context #187
  • throw error if no transport configured #176

2.8.4

06 Dec 08:16
6f7c113
Compare
Choose a tag to compare
  • Support setting a custom data attached to a subscribe request. This data will be then available in OnSubscribe callback on the server side (in the case of Centrifugo subscribe proxy will be able to access this data). #171.

2.8.3

12 Oct 14:47
3b43abc
Compare
Choose a tag to compare
  • Fix regression of 2.8.0: handle server-side subscribe and unsubscribe pushes.

2.8.2

14 Sep 12:20
fa2e218
Compare
Choose a tag to compare
  • Fix TypeScript definitions for subscribe (A rest parameter must be last in a parameter list.).

2.8.1

13 Sep 04:54
140950c
Compare
Choose a tag to compare
  • Support sockjsTimeout (number) option which translates to SockJS.timeout option - i.e. a minimum timeout in milliseconds to use for the transport connections. By default SockJS uses timeout determined automatically based on calculating round trip time during info request.

2.8.0

29 Aug 19:06
de7ba66
Compare
Choose a tag to compare

Update to work with Centrifuge >= v0.18.0 and Centrifugo v3.

Breaking change in server behavior. Client History API behavior changed in Centrifuge >= v0.18.0 and Centrifugo >= v3.0.0. When using history call it won't return all publications in a stream by default. See Centrifuge v0.18.0 release notes or Centrifugo v3 migration guide for more information and workaround on server-side. If you are using centrifuge-js with older server versions then everything without using history options like limit and since then everything should work the same way. Since this is a change in a server behavior we don't release a new major centrifuge-js version.

Other changes:

  • Protocol definitions updated to the latest version
  • When working with Centrifugo v3 or Centrifuge >= v0.18.0 it's now possible to avoid using ?format=protobuf in connection URL when using Protobuf protocol. The intent to use binary Protobuf protocol can now be set explicitly in client options. In this case client will negotiate Protobuf protocol with a server using WebSocket subprotocol mechanism (in request headers). Pull request.
  • It's now possible to call subscribe and provide custom subscribe options. One subscribe option available now is since – which allows setting known StreamPosition and initiate automatic recovery. Pull request.
  • Support history reverse option (Centrifuge >= v0.18.1 and Centrifugo v3 only)

2.7.7

28 Jul 08:32
da6187d
Compare
Choose a tag to compare
  • possibility to set disableWithCredentials boolean option (false by default) to control withCredentials option of XMLHttpRequest. See #155. Thanks to @yakimka

2.7.6

30 May 10:34
82c92f5
Compare
Choose a tag to compare
  • xmlhttprequest option to explicitly pass XMLHttpRequest (for NodeJS environment)

2.7.5

13 Apr 18:41
Compare
Choose a tag to compare
  • Fix regression of 2.7.4 - Unexpected end of JSON input

2.7.4

13 Apr 12:10
Compare
Choose a tag to compare
  • Optimize & simplify json encode/decode, see #138