MCPcopy Create free account
hub / github.com/CommE2E/comm / verifyClientSupported

Function verifyClientSupported

keyserver/src/session/version.js:9–19  ·  view source on GitHub ↗
(
  viewer: Viewer,
  platformDetails: ?PlatformDetails,
)

Source from the content-addressed store, hash-verified

7import type { Viewer } from './viewer.js';
8
9async function verifyClientSupported(
10 viewer: Viewer,
11 platformDetails: ?PlatformDetails,
12) {
13 if (hasMinCodeVersion(platformDetails, { native: 446, web: 146 })) {
14 return;
15 }
16 const error = new ServerError('client_version_unsupported');
17 error.platformDetails = platformDetails;
18 throw error;
19}
20
21export { verifyClientSupported };

Callers 1

checkClientSupportedFunction · 0.90

Calls 1

hasMinCodeVersionFunction · 0.90

Tested by

no test coverage detected