File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class Socket extends EventEmitter<
4040 public readonly id : string ;
4141 public readyState : ReadyState = "opening" ;
4242 public transport : Transport ;
43- public readonly request
43+ public readonly request ;
4444
4545 private readonly opts : ServerOptions ;
4646 private upgradeState : UpgradeState = "not_upgraded" ;
@@ -51,7 +51,12 @@ export class Socket extends EventEmitter<
5151 private pingIntervalTimer ?: Timer ;
5252 private pingTimeoutTimer ?: Timer ;
5353
54- constructor ( id : string , opts : ServerOptions , transport : Transport , request : Request ) {
54+ constructor (
55+ id : string ,
56+ opts : ServerOptions ,
57+ transport : Transport ,
58+ request : Request ,
59+ ) {
5560 super ( ) ;
5661
5762 this . id = id ;
@@ -64,8 +69,8 @@ export class Socket extends EventEmitter<
6469 // the `socket.io` library
6570 this . request = {
6671 headers : Object . fromEntries ( request . headers . entries ( ) ) ,
67- connection : { }
68- }
72+ connection : { } ,
73+ } ;
6974
7075 this . onOpen ( ) ;
7176 }
You can’t perform that action at this time.
0 commit comments