Skip to content

Commit

Permalink
2.7.3 - data in SubscribeSuccessContext
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Mar 31, 2021
1 parent 0fca1a6 commit 8fe7e86
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 8 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.3
=====

* `SubscribeSuccessContext` can contain `data` field if custom data returned from a server in a subscribe result.

2.7.2
=====

Expand Down
1 change: 1 addition & 0 deletions dist/centrifuge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ declare namespace Centrifuge {
isResubscribe: boolean;
recovered: boolean;
streamPosition?: StreamPosition;
data?: any;
}

export interface SubscribeErrorContext {
Expand Down
5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 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.

2 changes: 1 addition & 1 deletion 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.7.2",
"version": "2.7.3",
"description": "Centrifuge and Centrifugo client for NodeJS and browser",
"main": "dist/centrifuge.js",
"types": "dist/centrifuge.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/centrifuge.js
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,9 @@ export class Centrifuge extends EventEmitter {
'epoch': epoch
};
};
if (result.data) {
ctx.data = result.data;
}
return ctx;
}

Expand Down

0 comments on commit 8fe7e86

Please sign in to comment.