Publish to all sockets subscribed to the global topic.
Publish to all sockets subscribed to a specific room.
Closes the connection connectionId (as in socket:connected and a
handler's ctx.socket.data); false when it is not open. For an app that
authenticates in a message rather than at the handshake: a connection
that never does stays open as long as its client answers pings, so
close the ones that have not authenticated in time.
Closes every open connection (1001 "going away", so clients see a clean
close and can reconnect elsewhere) and the listener. A plain
server.stop() only stopped accepting: connected clients kept being
served after app.stop(), by handlers whose DB and other drivers were
already stopped.
The port the server listens on once started (the one the OS picked for
port: 0); before start, the configured port.