SOURCE / PINNED RELEASE
Made of little things.
Faultline
- Release
- da1ffaa5624c…
- Author-recorded commit
- 60f5f03189db…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-6932b12c78c
Archive hash verified: 5a2e0492417ec4e7…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
import { spawnSync } from 'node:child_process';
import { accessSync, constants } from 'node:fs';
import { delimiter, join } from 'node:path';
const args = process.argv.slice(2);
if (!args.includes('--turn-binary')) {
const executable = process.platform === 'win32' ? 'turnserver.exe' : 'turnserver';
const relay = (process.env.PATH ?? '')
.split(delimiter)
.map((dir) => join(dir, executable))
.find((path) => {
try {
accessSync(path, constants.X_OK);
return true;
} catch {
return false;
}
});
if (relay) args.push('--turn-binary', relay);
}
const run = spawnSync(
'soyli',
[
'multiplayer',
'tests/multiplayer.mjs',
'--latency',
'50',
'--jitter',
'15',
'--timeout',
'150',
...args,
],
{ stdio: 'inherit' },
);
if (run.error) console.error(run.error.message);
process.exitCode = run.status ?? 1;
