File tree 5 files changed +11
-12
lines changed
5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ async function main() {
40
40
41
41
rt . on ( 'error' , ( err ) => {
42
42
// 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
44
44
throw err ;
45
45
} ) ;
46
46
@@ -57,4 +57,4 @@ async function main() {
57
57
rt . socket . addEventListener ( 'close' , ( ) => console . log ( '\nConnection closed!' ) ) ;
58
58
}
59
59
60
- main ( ) ;
60
+ main ( ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ async function main() {
40
40
41
41
rt . on ( 'error' , ( err ) => {
42
42
// 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
44
44
throw err ;
45
45
} ) ;
46
46
@@ -57,4 +57,4 @@ async function main() {
57
57
rt . socket . on ( 'close' , ( ) => console . log ( '\nConnection closed!' ) ) ;
58
58
}
59
59
60
- main ( ) ;
60
+ main ( ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function main() {
28
28
29
29
rt . on ( 'error' , ( err ) => {
30
30
// 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
32
32
throw err ;
33
33
} ) ;
34
34
@@ -45,4 +45,4 @@ async function main() {
45
45
rt . socket . addEventListener ( 'close' , ( ) => console . log ( '\nConnection closed!' ) ) ;
46
46
}
47
47
48
- main ( ) ;
48
+ main ( ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function main() {
28
28
29
29
rt . on ( 'error' , ( err ) => {
30
30
// 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
32
32
throw err ;
33
33
} ) ;
34
34
@@ -45,4 +45,4 @@ async function main() {
45
45
rt . socket . on ( 'close' , ( ) => console . log ( '\nConnection closed!' ) ) ;
46
46
}
47
47
48
- main ( ) ;
48
+ main ( ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ rt.socket.on('open', () => {
39
39
40
40
rt .on (' error' , (err ) => {
41
41
// 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
43
43
throw err ;
44
44
});
45
45
@@ -80,8 +80,7 @@ It is **highly recommended** that you register an `error` event listener and han
80
80
const rt = new OpenAIRealtimeWS ({ model: ' gpt-4o-realtime-preview-2024-12-17' });
81
81
rt .on (' error' , (err ) => {
82
82
// 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
84
84
throw err ;
85
85
});
86
- ```
87
-
86
+ ```
You can’t perform that action at this time.
0 commit comments