Skip to content

v6.2.0

Compare
Choose a tag to compare
@jondubois jondubois released this 16 Jul 11:16
· 287 commits to master since this release
  • You can now optionally assign a priority to each channel - This will determine the order in which subscriptions are sent to the server - This includes auto-resubscription when the socket recovers from a connection failure. The priority must be a number; the higher the priority, the sooner the subscription will be processed. So if you have socket.subscribe('bar').priority = 2; and socket.subscribe('foo').priority = 3; then the subscriptions will be sent to the server in the order
    #
    1: foo,
    #
    2: bar.
  • Fixed a bug which meant that pending channel subscriptions would always be processed just before triggering the 'connection' event; even when autoProcessSubscriptions / autoSubscribeOnConnect was set to false. Note that if you aren't using the autoProcessSubscriptions / autoSubscribeOnConnect option, then this bug will not affect you. If you do use autoProcessSubscriptions / autoSubscribeOnConnect, then this bug may also not affect you (but this strictly depends on your specific use case).

Breaking change:

  • autoProcessSubscriptions option has been renamed to autoSubscribeOnConnect.