File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ rt.socket.on('open', () => {
3939
4040rt .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
8080const rt = new OpenAIRealtimeWS ({ model: ' gpt-4o-realtime-preview-2024-12-17' });
8181rt .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+ ```
You can’t perform that action at this time.
0 commit comments