Skip to content

Commit

Permalink
Fix JS demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jan 8, 2025
1 parent fb33cfb commit 4b6cbf9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions js/Glacier2/simpleChat/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ async function runWithSession(router: Glacier2.RouterPrx, session: Demo.ChatSess
router.ice_getCommunicator().createObjectAdapterWithRouter("", router),
]);

//
// Use ACM heartbeat to keep session alive.
//
const connection = router.ice_getCachedConnection();
if (timeout > 0) {
connection.setACM(timeout, undefined, Ice.ACMHeartbeat.HeartbeatAlways);
}

connection.setCloseCallback(() => console.log("Connection lost"));

//
Expand Down
2 changes: 1 addition & 1 deletion js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ or coding technique.

The following subdirectories contain sample programs:

- [Glacier2](./Glacier2) is a simpler chat client that uses the Glacier2 service.
- [Glacier2](./Glacier2) is a simple chat client that uses the Glacier2 service.

- [Ice](./Ice) has several examples that illustrate fundamental Ice concepts.

Expand Down

0 comments on commit 4b6cbf9

Please sign in to comment.