Skip to content

Commit fda4a2b

Browse files
committed
Merge branch 'main' into add-audio-output-state
2 parents cf4f224 + 92e770a commit fda4a2b

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Layercode",
33
"license": "MIT",
44
"name": "@layercode/react-sdk",
5-
"version": "2.3.3",
5+
"version": "2.4.0",
66
"description": "Layercode React SDK for integrating with React applications",
77
"type": "module",
88
"main": "./dist/index.js",
@@ -39,7 +39,7 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@layercode/js-sdk": "^2.3.3"
42+
"@layercode/js-sdk": "^2.4.0"
4343
},
4444
"devDependencies": {
4545
"@rollup/plugin-commonjs": "^25.0.8",

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ const useLayercodeAgent = (
233233
const sendClientResponseText = useCallback((text: string) => {
234234
clientRef.current?.sendClientResponseText(text);
235235
}, []);
236+
const sendClientResponseData = useCallback((text: string) => {
237+
clientRef.current?.sendClientResponseData(text);
238+
}, []);
236239
const connect = useCallback(async () => {
237240
if (clientRef.current) {
238241
try {
@@ -282,6 +285,7 @@ const useLayercodeAgent = (
282285
mute,
283286
unmute,
284287
sendClientResponseText,
288+
sendClientResponseData,
285289

286290
setAudioInput,
287291
setAudioOutput,

0 commit comments

Comments
 (0)