File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -977,14 +977,18 @@ class QuicSocket extends EventEmitter {
977
977
}
978
978
}
979
979
980
- [ kInspect ] ( ) {
981
- // TODO(@jasnell): Proper custom inspect implementation
982
- const state = this [ kInternalState ] ;
983
- const obj = {
980
+ [ kInspect ] ( depth , options ) {
981
+ return customInspect ( this , {
984
982
endpoints : this . endpoints ,
985
- sessions : state . sessions ,
986
- } ;
987
- return `QuicSocket ${ util . format ( obj ) } ` ;
983
+ sessions : this . sessions ,
984
+ bound : this . bound ,
985
+ pending : this . pending ,
986
+ closing : this . closing ,
987
+ destroyed : this . destroyed ,
988
+ listening : this . listening ,
989
+ serverBusy : this . serverBusy ,
990
+ statelessResetDisabled : this . statelessResetDisabled ,
991
+ } , depth , options ) ;
988
992
}
989
993
990
994
[ kAddSession ] ( session ) {
You can’t perform that action at this time.
0 commit comments