@@ -81,9 +81,10 @@ export default class ConnectionRepository extends SubscriptionPerformer<boolean>
81
81
if ( this . timerId === undefined ) {
82
82
console . log ( 'set timer keep alive' ) ;
83
83
this . timerId = setInterval ( ( ) => {
84
- console . log (
85
- `!!!--have ping result after ${ ConnectionRepository . PING_ALIVE_INTERVAL } --!!!` ,
86
- ) ;
84
+ // todo artik changed 28.12.2023
85
+ // console.log(
86
+ // `!!!--have ping result after ${ConnectionRepository.PING_ALIVE_INTERVAL}--!!!`,
87
+ // );
87
88
// eslint-disable-next-line promise/always-return
88
89
// todo: cause of recycle v1
89
90
this . ChatServerPing ( )
@@ -107,7 +108,7 @@ export default class ConnectionRepository extends SubscriptionPerformer<boolean>
107
108
108
109
// eslint-disable-next-line class-methods-use-this
109
110
protected async ChatServerPing ( ) : Promise < boolean > {
110
- console . log ( 'ping ChatServerPing' ) ;
111
+ // console.log('ping ChatServerPing'); //todo artik changed 28.12.2023
111
112
const pingChat = ( ) : Promise < string > => {
112
113
return new Promise < string > ( ( resolve , reject ) => {
113
114
try {
@@ -116,7 +117,7 @@ export default class ConnectionRepository extends SubscriptionPerformer<boolean>
116
117
console . log ( 'ping failed: ' , stringifyError ( error ) ) ;
117
118
resolve ( 'failed' ) ;
118
119
} else {
119
- console . log ( 'ping connected' ) ;
120
+ // console.log('ping connected'); //todo artik changed 28.12.2023
120
121
resolve ( 'connected' ) ;
121
122
}
122
123
} ) ;
@@ -137,7 +138,7 @@ export default class ConnectionRepository extends SubscriptionPerformer<boolean>
137
138
const raceResult = await Promise . race ( [ pingChat ( ) , waitingFor ( ) ] ) ;
138
139
const result = raceResult === 'connected' ;
139
140
140
- console . log ( 'ping ' , raceResult , ' operation result is ' , result ) ;
141
+ // console.log('ping ', raceResult, ' operation result is ', result); //todo artik changed 28.12.2023
141
142
142
143
return Promise . resolve ( result ) ;
143
144
}
0 commit comments