ProtectedactiveProtectedenabledProtected ReadonlyloggerProtectedshutdownProtectedshutdownProtectedcancelFunction invoked when a HTTP connection is upgraded to a websocket.
The HTTP connection upgrade request received by the server.
The WebSocket that the connection was upgraded to.
ProtectedscheduleAll remaining options
Non-option arguments
The script name or node command
Protectedtry
Tracks active frontend WebSocket connections on a remote backend. When auto-shutdown is enabled and all connections close, starts a timer and calls
process.exit(0)if no new connection arrives before the timeout.