@@ -1330,8 +1330,8 @@ added: REPLACEME
13301330-->
13311331
13321332Emitted when the server busy state has been toggled using
1333- ` quicSocket.setServerBusy() ` . The callback is invoked with a single
1334- boolean argument indicating ` true ` if busy status is enabled,
1333+ ` quicSocket.serverBusy = true | false ` . The callback is invoked with a
1334+ single boolean argument indicating ` true ` if busy status is enabled,
13351335` false ` otherwise. This event is strictly informational.
13361336
13371337``` js
@@ -1346,8 +1346,8 @@ socket.on('busy', (busy) => {
13461346 console .log (' Server is not busy' );
13471347});
13481348
1349- socket .setServerBusy ( true ) ;
1350- socket .setServerBusy ( false ) ;
1349+ socket .serverBusy = true ;
1350+ socket .serverBusy = false ;
13511351```
13521352
13531353This ` 'busy' ` event may be emitted multiple times.
@@ -1874,6 +1874,18 @@ Set to `true` if the socket is not yet bound to the local UDP port.
18741874added: REPLACEME
18751875-->
18761876
1877+ #### quicsocket.serverBusy
1878+ <!-- YAML
1879+ added: REPLACEME
1880+ -->
1881+
1882+ * Type: {boolean} When ` true ` , the ` QuicSocket ` will reject new connections.
1883+
1884+ Setting ` quicsocket.serverBusy ` to ` true ` will tell the ` QuicSocket `
1885+ to reject all new incoming connection requests using the ` SERVER_BUSY ` QUIC
1886+ error code. To begin receiving connections again, disable busy mode by setting
1887+ ` quicsocket.serverBusy = false ` .
1888+
18771889#### quicsocket.serverBusyCount
18781890<!-- YAML
18791891added: REPLACEME
@@ -1911,19 +1923,6 @@ by artificially dropping received or transmitted packets.
19111923
19121924This method is * not* to be used in production applications.
19131925
1914- #### quicsocket.setServerBusy(\[ on\] )
1915- <!-- YAML
1916- added: REPLACEME
1917- -->
1918-
1919- * ` on ` {boolean} When ` true ` , the ` QuicSocket ` will reject new connections.
1920- ** Defaults** : ` true ` .
1921-
1922- Calling ` setServerBusy() ` or ` setServerBusy(true) ` will tell the ` QuicSocket `
1923- to reject all new incoming connection requests using the ` SERVER_BUSY ` QUIC
1924- error code. To begin receiving connections again, disable busy mode by calling
1925- ` setServerBusy(false) ` .
1926-
19271926#### quicsocket.statelessResetCount
19281927<!-- YAML
19291928added: REPLACEME
0 commit comments