Skip to content

Commit

Permalink
removeAllSessions() to clean up connection. (#33)
Browse files Browse the repository at this point in the history
*  removeAllSessions() to clean up connection.
  • Loading branch information
ShivangiReja authored and AlexGhiondea committed Mar 18, 2019
1 parent fc54de2 commit aa58f32
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions lib/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,15 @@ export class Connection extends Entity {
return result;
}

/**
* Remove all the sessions from the internal map.
*/
removeAllSessions(): void {
if (this._connection) {
this._connection.remove_all_sessions();
}
}

/**
* Determines whether the remote end of the connection is open.
* @returns {boolean} result `true` - is open; `false` otherwise.
Expand Down
6 changes: 3 additions & 3 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
Expand Up @@ -7,7 +7,7 @@
"types": "./typings/lib/index.d.ts",
"dependencies": {
"debug": "^3.1.0",
"rhea": "^1.0.0",
"rhea": "^1.0.2",
"tslib": "^1.9.3"
},
"keywords": [
Expand Down

0 comments on commit aa58f32

Please sign in to comment.