Skip to content

Commit

Permalink
fix server-side subscribe/unsubscribe, prepare 2.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 12, 2021
1 parent e38afee commit 3b43abc
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 22 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.8.3
=====

* Fix regression of 2.8.0: handle server-side subscribe and unsubscribe pushes.

2.8.2
=====

Expand Down
8 changes: 4 additions & 4 deletions dist/centrifuge.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/centrifuge.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/centrifuge.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/centrifuge.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/centrifuge.protobuf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/centrifuge.protobuf.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/centrifuge.protobuf.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/centrifuge.protobuf.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "centrifuge",
"version": "2.8.2",
"version": "2.8.3",
"description": "Centrifuge and Centrifugo client for NodeJS and browser",
"main": "dist/centrifuge.js",
"types": "dist/centrifuge.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions src/centrifuge.js
Original file line number Diff line number Diff line change
Expand Up @@ -1599,11 +1599,11 @@ export class Centrifuge extends EventEmitter {
} else if (type === this._pushType.LEAVE) {
const leave = this._decoder.decodePushData(this._pushType.LEAVE, push.data);
this._handleLeave(channel, leave);
} else if (type === this._pushType.UNSUB) {
const unsub = this._decoder.decodePushData(this._pushType.UNSUB, push.data);
} else if (type === this._pushType.UNSUBSCRIBE) {
const unsub = this._decoder.decodePushData(this._pushType.UNSUBSCRIBE, push.data);
this._handleUnsub(channel, unsub);
} else if (type === this._pushType.SUB) {
const sub = this._decoder.decodePushData(this._pushType.SUB, push.data);
} else if (type === this._pushType.SUBSCRIBE) {
const sub = this._decoder.decodePushData(this._pushType.UNSUBSCRIBE, push.data);
this._handleSub(channel, sub);
}
next();
Expand Down
2 changes: 1 addition & 1 deletion src/protobuf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Centrifuge} from './centrifuge.js';
import { Centrifuge } from './centrifuge.js';

const protobuf = require('protobufjs/light');
const proto = protobuf.Root.fromJSON(require('./client.proto.json'));
Expand Down

0 comments on commit 3b43abc

Please sign in to comment.