add server.getVersion()

This commit is contained in:
Marcelo Paternostro 2025-04-13 19:49:23 -04:00
commit b5e6d7bc32
No known key found for this signature in database

View file

@ -104,6 +104,13 @@ export class Server<
);
}
/**
* The server's name and version.
*/
getVersion(): { readonly name: string; readonly version: string } {
return this._serverInfo;
}
/**
* Registers new capabilities. This can only be called before connecting to a transport.
*