File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
__tests__/json-crdt-server Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- import type { JsonCrdtTestSetup } from " ../../__demos__/json-crdt-server/__tests__/setup" ;
2- import type { ApiTestSetup } from " ../../common/rpc/__tests__/runApiTests" ;
1+ import type { JsonCrdtTestSetup } from ' ../../__demos__/json-crdt-server/__tests__/setup' ;
2+ import type { ApiTestSetup } from ' ../../common/rpc/__tests__/runApiTests' ;
33
44export const runUtilTests = ( _setup : ApiTestSetup , params : { staticOnly ?: true } = { } ) => {
55 const setup = _setup as JsonCrdtTestSetup ;
Original file line number Diff line number Diff line change @@ -166,11 +166,10 @@ export class Http1Server implements Printable {
166166 protected wsMatcher : RouteMatcher < WsEndpointDefinition > = ( ) => undefined ;
167167
168168 private readonly onUpgrade = ( req : http . IncomingMessage , socket : net . Socket ) => {
169- if ( req . headers [ 'upgrade' ] === 'websocket' ) {
170- this . onWsUpgrade ( req , socket ) ;
171- } else {
172-
173- }
169+ if ( req . headers . upgrade === 'websocket' ) {
170+ this . onWsUpgrade ( req , socket ) ;
171+ } else {
172+ }
174173 } ;
175174
176175 private readonly onWsUpgrade = ( req : http . IncomingMessage , socket : net . Socket ) => {
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ export class WsServerConnection {
116116 socket . on ( 'close' , handleClose ) ;
117117 socket . on ( 'error' , ( err : Error ) => {
118118 // TODO: Improve error handling.
119+ // tslint:disable-next-line:no-console
119120 console . log ( 'SOCKET ERROR:' , err ) ;
120121 this . onClose ( 0 , '' ) ;
121122 } ) ;
You can’t perform that action at this time.
0 commit comments