We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 511f8c1 commit b047930Copy full SHA for b047930
lib/internal/quic/core.js
@@ -977,14 +977,18 @@ class QuicSocket extends EventEmitter {
977
}
978
979
980
- [kInspect]() {
981
- // TODO(@jasnell): Proper custom inspect implementation
982
- const state = this[kInternalState];
983
- const obj = {
+ [kInspect](depth, options) {
+ return customInspect(this, {
984
endpoints: this.endpoints,
985
- sessions: state.sessions,
986
- };
987
- return `QuicSocket ${util.format(obj)}`;
+ sessions: this.sessions,
+ bound: this.bound,
+ pending: this.pending,
+ closing: this.closing,
+ destroyed: this.destroyed,
988
+ listening: this.listening,
989
+ serverBusy: this.serverBusy,
990
+ statelessResetDisabled: this.statelessResetDisabled,
991
+ }, depth, options);
992
993
994
[kAddSession](session) {
0 commit comments