Skip to content

Commit

Permalink
handle server-side SUB push in Protobuf case
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Mar 3, 2021
1 parent c70e75c commit 0fca1a6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.7.2
=====

* Handle server-side SUB push in Protobuf case (previously ignored). Sub push is a message that contains information about server-side subscription made after connection already established.

2.7.1
=====

Expand Down
3 changes: 2 additions & 1 deletion 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.

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.7.1",
"version": "2.7.2",
"description": "Centrifuge and Centrifugo client for NodeJS and browser",
"main": "dist/centrifuge.js",
"types": "dist/centrifuge.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/protobuf.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ const protobufPushType = {
JOIN: proto.lookupEnum('PushType').values.JOIN,
LEAVE: proto.lookupEnum('PushType').values.LEAVE,
UNSUB: proto.lookupEnum('PushType').values.UNSUB,
MESSAGE: proto.lookupEnum('PushType').values.MESSAGE
MESSAGE: proto.lookupEnum('PushType').values.MESSAGE,
SUB: proto.lookupEnum('PushType').values.SUB
};

const PushSchema = {
Expand Down

0 comments on commit 0fca1a6

Please sign in to comment.