Skip to content

@modoki/engine / index / fetchRelease

Function: fetchRelease()

fetchRelease(opts): Promise<FetchReleaseResult>

Fetches release.json and verifies its signature — the half of checkForUpdate that OTA Phase 4's sub-game discovery needs standalone (it reads release.bundles to find sub-game names before running checkForUpdate once per bundle; the shell's own checkForUpdate call inlines this same logic rather than calling out to it, so as not to double the network round-trip on the common single-bundle path). Never throws — a network/parse/signature failure is a discriminated result, same contract as checkForUpdate.

Parameters

opts

FetchReleaseOptions

Returns

Promise<FetchReleaseResult>

Built with Modoki.