consume server compatibility metadata
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@
|
||||
try {
|
||||
const response = await fetch(`${serverAddress}/api/v1/server/info`);
|
||||
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
||||
const info: { server_version: string } = await response.json();
|
||||
const info: { server_version: string; minimum_client_version?: string; maximum_client_version?: string } = await response.json();
|
||||
serverVersion = info.server_version;
|
||||
connectionState = 'CONNECTED';
|
||||
connectionNotice = '';
|
||||
|
||||
Reference in New Issue
Block a user