It seems that the listener for the "ready" event of the AGServer type does not exist in the type definitions within \node_modules\@types\socketcluster-server\server.d.ts. Please see the below code snippet of this file:
However, according to the documentation of AGServer, there is a "ready" event defined:
'ready' | Emitted when the server is ready to accept connections.
I have checked the source code in \node_modules\socketcluster-server\server.js and it does indeed emit the "ready" event as per the below snippet:
It seems that the listener for the "ready" event of the AGServer type does not exist in the type definitions within
\node_modules\@types\socketcluster-server\server.d.ts
. Please see the below code snippet of this file:However, according to the documentation of AGServer, there is a "ready" event defined: 'ready' | Emitted when the server is ready to accept connections.
I have checked the source code in
\node_modules\socketcluster-server\server.js
and it does indeed emit the "ready" event as per the below snippet:Is it just me or is the type definitions file incomplete in this regard?
Package Versions: "socketcluster-server": "^16.1.0" "@types/socketcluster-server": "^15.0.4" "socketcluster": "^16.0.2"