Skip to content

Commit 87b44f7

Browse files
committed
sdk: add closeConnection function
1 parent 4e33ab2 commit 87b44f7

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the @codebuff/sdk package will be documented in this file.
44

5+
## [0.1.9] - 2025-08-13
6+
7+
### Added
8+
9+
- `closeConnection` method in `CodebuffClient`
10+
511
## [0.1.8] - 2025-08-13
612

713
### Added

sdk/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ const run2 = await client.run({
9999
},
100100
],
101101
})
102+
103+
client.closeConnection()
102104
```
103105

104106
## API Reference

sdk/src/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ export class CodebuffClient {
103103
})
104104
}
105105

106+
public closeConnection() {
107+
this.websocketHandler.close()
108+
}
109+
106110
/**
107111
* Run a Codebuff agent with the specified options.
108112
*

0 commit comments

Comments
 (0)