File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ class WebSocketStreamClientInternal extends WebSocketStream {
467467 }
468468 // Then close the websocket
469469 if ( ! this . _webSocketEnded ) {
470- this . ws . close ( 4001 , 'Ending connection' ) ;
470+ this . ws . close ( 4000 , 'Ending connection' ) ;
471471 this . signalWebSocketEnd ( err ) ;
472472 }
473473 }
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ class WebSocketStreamServerInternal extends WebSocketStream {
416416 if ( this . _readableEnded && ! this . _webSocketEnded ) {
417417 writableLogger . debug ( 'Ending socket' ) ;
418418 this . signalWebSocketEnd ( reason ) ;
419- ws . end ( 4001 , 'ABORTED ' ) ;
419+ ws . end ( 4000 , 'Aborting connection ' ) ;
420420 }
421421 } ,
422422 } ) ;
@@ -448,7 +448,7 @@ class WebSocketStreamServerInternal extends WebSocketStream {
448448 const err = new webSocketErrors . ErrorServerReadableBufferLimit ( ) ;
449449 if ( ! this . _webSocketEnded ) {
450450 this . signalWebSocketEnd ( err ) ;
451- ws . end ( 4001 , 'Read stream buffer full' ) ;
451+ ws . end ( 4000 , 'Read stream buffer full' ) ;
452452 }
453453 controller . error ( err ) ;
454454 }
@@ -527,7 +527,7 @@ class WebSocketStreamServerInternal extends WebSocketStream {
527527 }
528528 // Then close the websocket
529529 if ( ! this . _webSocketEnded ) {
530- this . ws . end ( 4001 , 'Ending connection' ) ;
530+ this . ws . end ( 4000 , 'Ending connection' ) ;
531531 this . signalWebSocketEnd ( err ) ;
532532 }
533533 }
You can’t perform that action at this time.
0 commit comments