@@ -108,7 +108,6 @@ const {
108108 kBlocked,
109109 kDatagram,
110110 kDatagramStatus,
111- kError,
112111 kFinishClose,
113112 kHandshake,
114113 kHeaders,
@@ -591,7 +590,7 @@ setCallbacks({
591590 } ,
592591 onStreamClose ( error ) {
593592 // Called when the stream C++ handle has been closed.
594- debug ( 'stream closed callback' , this [ kOwner ] , error )
593+ debug ( 'stream closed callback' , this [ kOwner ] , error ) ;
595594 this [ kOwner ] . destroy ( error ) ;
596595 } ,
597596 onStreamReset ( error ) {
@@ -1410,6 +1409,10 @@ class QuicSession {
14101409 async [ SymbolAsyncDispose ] ( ) { await this . close ( ) ; }
14111410}
14121411
1412+ // The QuicEndpoint represents a local UDP port binding. It can act as both a
1413+ // server for receiving peer sessions, or a client for initiating them. The
1414+ // local UDP port will be lazily bound only when connect() or listen() are
1415+ // called.
14131416class QuicEndpoint {
14141417 /**
14151418 * The local socket address on which the endpoint is listening (lazily created)
@@ -1696,7 +1699,10 @@ class QuicEndpoint {
16961699 debug ( 'endpoint created' ) ;
16971700 }
16981701
1699- /** @type {QuicEndpointStats } */
1702+ /**
1703+ * Statistics collected while the endpoint is operational.
1704+ * @type {QuicEndpointStats }
1705+ */
17001706 get stats ( ) { return this . #stats; }
17011707
17021708 /** @type {QuicEndpointState } */
@@ -2034,14 +2040,6 @@ class QuicEndpoint {
20342040 return this . closed ;
20352041 }
20362042
2037- ref ( ) {
2038- if ( this . #handle !== undefined ) this . #handle. ref ( true ) ;
2039- }
2040-
2041- unref ( ) {
2042- if ( this . #handle !== undefined ) this . #handle. ref ( false ) ;
2043- }
2044-
20452043 #maybeGetCloseError( context , status ) {
20462044 switch ( context ) {
20472045 case kCloseContextClose : {
0 commit comments