Skip to content
Merged
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;
});
```

```