Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit fd9ce72

Browse files
newcanopiesMinggang Wang
authored andcommitted
Update index.js
Ctrl+C terminate rosbridge node in commanding terminal
1 parent c8612de commit fd9ce72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ function createConnection(options) {
135135

136136
let wsAddr = options.address || `ws://localhost:${options.port}`;
137137
console.log(`Websocket started on ${wsAddr}`);
138+
// graceful shutdown rosbridge node commanding terminal
139+
process.on('SIGINT', () => process.exit(1));
138140
}
139141

140142
module.exports = {

0 commit comments

Comments
 (0)