Skip to content

docs: fix "procesing" -> "processing" in realtime examples #1406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 2, 2025
4 changes: 2 additions & 2 deletions examples/azure/realtime/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function main() {

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

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

main();
main();
4 changes: 2 additions & 2 deletions examples/azure/realtime/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function main() {

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

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

main();
main();
4 changes: 2 additions & 2 deletions examples/realtime/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function main() {

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

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

main();
main();
4 changes: 2 additions & 2 deletions examples/realtime/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function main() {

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

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

main();
main();
7 changes: 3 additions & 4 deletions realtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rt.socket.on('open', () => {

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

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

```