diff --git a/examples/azure/realtime/websocket.ts b/examples/azure/realtime/websocket.ts index bec74e654..4175b4a71 100644 --- a/examples/azure/realtime/websocket.ts +++ b/examples/azure/realtime/websocket.ts @@ -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; }); @@ -57,4 +57,4 @@ async function main() { rt.socket.addEventListener('close', () => console.log('\nConnection closed!')); } -main(); +main(); \ No newline at end of file diff --git a/examples/azure/realtime/ws.ts b/examples/azure/realtime/ws.ts index 6ab7b742a..e86a79092 100644 --- a/examples/azure/realtime/ws.ts +++ b/examples/azure/realtime/ws.ts @@ -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; }); @@ -57,4 +57,4 @@ async function main() { rt.socket.on('close', () => console.log('\nConnection closed!')); } -main(); +main(); \ No newline at end of file diff --git a/examples/realtime/websocket.ts b/examples/realtime/websocket.ts index 0da131bc3..f1c46dd41 100644 --- a/examples/realtime/websocket.ts +++ b/examples/realtime/websocket.ts @@ -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; }); @@ -45,4 +45,4 @@ async function main() { rt.socket.addEventListener('close', () => console.log('\nConnection closed!')); } -main(); +main(); \ No newline at end of file diff --git a/examples/realtime/ws.ts b/examples/realtime/ws.ts index 08c6fbcb6..1ce6b2045 100644 --- a/examples/realtime/ws.ts +++ b/examples/realtime/ws.ts @@ -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; }); @@ -45,4 +45,4 @@ async function main() { rt.socket.on('close', () => console.log('\nConnection closed!')); } -main(); +main(); \ No newline at end of file diff --git a/realtime.md b/realtime.md index 2fcd17e9e..7e8d84a3c 100644 --- a/realtime.md +++ b/realtime.md @@ -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; }); @@ -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; }); -``` - +``` \ No newline at end of file