File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export class ReconnectingWebSocket<TData = unknown>
178178
179179 if ( UNRECOVERABLE_CLOSE_CODES . has ( event . code ) ) {
180180 this . #logger. error (
181- `[ReconnectingWebSocket] Unrecoverable error ( ${ event . code } ) for ${ this . #apiRoute } ` ,
181+ `WebSocket connection closed with unrecoverable error code ${ event . code } ` ,
182182 ) ;
183183 this . #isDisposed = true ;
184184 return ;
@@ -213,7 +213,7 @@ export class ReconnectingWebSocket<TData = unknown>
213213 const delayMs = Math . max ( 0 , this . #backoffMs + jitter ) ;
214214
215215 this . #logger. debug (
216- `[ReconnectingWebSocket] Reconnecting in ${ Math . round ( delayMs ) } ms for ${ this . #apiRoute} ` ,
216+ `Reconnecting WebSocket in ${ Math . round ( delayMs ) } ms for ${ this . #apiRoute} ` ,
217217 ) ;
218218
219219 this . #reconnectTimeoutId = setTimeout ( ( ) => {
@@ -222,7 +222,7 @@ export class ReconnectingWebSocket<TData = unknown>
222222 this . #connect( ) . catch ( ( error ) => {
223223 if ( ! this . #isDisposed) {
224224 this . #logger. warn (
225- `[ReconnectingWebSocket] Failed : ${ error instanceof Error ? error . message : String ( error ) } for ${ this . #apiRoute } ` ,
225+ `WebSocket connection failed for ${ this . #apiRoute } : ${ error instanceof Error ? error . message : String ( error ) } ` ,
226226 ) ;
227227 this . #scheduleReconnect( ) ;
228228 }
You can’t perform that action at this time.
0 commit comments