Skip to content

Commit dfbdc65

Browse files
mini-peanutstainless-app[bot]
authored andcommitted
docs: fix "procesing" -> "processing" in realtime examples (#1406)
1 parent 995075b commit dfbdc65

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

examples/azure/realtime/websocket.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function main() {
4040

4141
rt.on('error', (err) => {
4242
// in a real world scenario this should be logged somewhere as you
43-
// likely want to continue procesing events regardless of any errors
43+
// likely want to continue processing events regardless of any errors
4444
throw err;
4545
});
4646

@@ -57,4 +57,4 @@ async function main() {
5757
rt.socket.addEventListener('close', () => console.log('\nConnection closed!'));
5858
}
5959

60-
main();
60+
main();

examples/azure/realtime/ws.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function main() {
4040

4141
rt.on('error', (err) => {
4242
// in a real world scenario this should be logged somewhere as you
43-
// likely want to continue procesing events regardless of any errors
43+
// likely want to continue processing events regardless of any errors
4444
throw err;
4545
});
4646

@@ -57,4 +57,4 @@ async function main() {
5757
rt.socket.on('close', () => console.log('\nConnection closed!'));
5858
}
5959

60-
main();
60+
main();

examples/realtime/websocket.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function main() {
2828

2929
rt.on('error', (err) => {
3030
// in a real world scenario this should be logged somewhere as you
31-
// likely want to continue procesing events regardless of any errors
31+
// likely want to continue processing events regardless of any errors
3232
throw err;
3333
});
3434

@@ -45,4 +45,4 @@ async function main() {
4545
rt.socket.addEventListener('close', () => console.log('\nConnection closed!'));
4646
}
4747

48-
main();
48+
main();

examples/realtime/ws.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function main() {
2828

2929
rt.on('error', (err) => {
3030
// in a real world scenario this should be logged somewhere as you
31-
// likely want to continue procesing events regardless of any errors
31+
// likely want to continue processing events regardless of any errors
3232
throw err;
3333
});
3434

@@ -45,4 +45,4 @@ async function main() {
4545
rt.socket.on('close', () => console.log('\nConnection closed!'));
4646
}
4747

48-
main();
48+
main();

realtime.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ rt.socket.on('open', () => {
3939

4040
rt.on('error', (err) => {
4141
// in a real world scenario this should be logged somewhere as you
42-
// likely want to continue procesing events regardless of any errors
42+
// likely want to continue processing events regardless of any errors
4343
throw err;
4444
});
4545

@@ -80,8 +80,7 @@ It is **highly recommended** that you register an `error` event listener and han
8080
const rt = new OpenAIRealtimeWS({ model: 'gpt-4o-realtime-preview-2024-12-17' });
8181
rt.on('error', (err) => {
8282
// in a real world scenario this should be logged somewhere as you
83-
// likely want to continue procesing events regardless of any errors
83+
// likely want to continue processing events regardless of any errors
8484
throw err;
8585
});
86-
```
87-
86+
```

0 commit comments

Comments
 (0)