Skip to content

Commit

Permalink
fix(ready): remove unused future
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jun 19, 2024
1 parent cc8ef8f commit 9b1eb0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions js-lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ await trame.connect({ application: "trame" });
// custom serializer registration for method/state
trame.registerDecorator()

// same as waiting on connect
await trame.ready

// Listen to connection status change
const unsubscribeOnClose = trame.onClose((info) => {
console.log("connection closed", info);
Expand Down
3 changes: 3 additions & 0 deletions js-lib/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 js-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kitware/trame",
"version": "0.0.4",
"version": "0.0.5",
"license": "MIT",
"main": "./dist/trame.umd.js",
"unpkg": "./dist/trame.umd.js",
Expand Down
4 changes: 0 additions & 4 deletions js-lib/src/trame.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export class Trame {
this._errorListeners = new ListenerManager("trame connection error");

// public objects
this.ready = new Promise((resolve, reject) => {
this._resolve = resolve;
this._reject = reject;
});
this.client = null;
this.state = null;
this.config = null;
Expand Down

0 comments on commit 9b1eb0c

Please sign in to comment.