@colyseus/loadtest
Advanced tools
Comparing version 0.16.0-preview.4 to 0.16.0-preview.5
@@ -15,4 +15,5 @@ export type RequestJoinOperations = { | ||
requestJoinOptions?: RequestJoinOperations; | ||
clientId: number; | ||
}; | ||
export type MainCallback = (options: Options) => Promise<void>; | ||
export declare function cli(main: MainCallback): void; |
@@ -107,3 +107,4 @@ var __create = Object.create; | ||
retryFailed: argv.retryFailed || 0, | ||
output: argv.output && import_path.default.resolve(argv.output) | ||
output: argv.output && import_path.default.resolve(argv.output), | ||
clientId: 0 | ||
}; | ||
@@ -293,3 +294,5 @@ if (!main) { | ||
Failed connections: ${totalStats.failed} | ||
Total errors: ${totalStats.errors}`, | ||
Total errors: ${totalStats.errors} | ||
Logs: | ||
${logBox.content}`, | ||
true | ||
@@ -369,3 +372,3 @@ /* closing */ | ||
try { | ||
await main2(options); | ||
await main2({ ...options, clientId: i }); | ||
} catch (e) { | ||
@@ -372,0 +375,0 @@ handleError(e); |
{ | ||
"name": "@colyseus/loadtest", | ||
"version": "0.16.0-preview.4", | ||
"version": "0.16.0-preview.5", | ||
"description": "Utility tool for load testing Colyseus.", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./build/index.d.ts", | ||
"require": "./build/index.js", | ||
"import": "./build/index.mjs" | ||
} | ||
}, | ||
"input": "./src/index.ts", | ||
@@ -10,8 +17,2 @@ "main": "./build/index.js", | ||
"typings": "./build/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./build/index.mjs", | ||
"require": "./build/index.js" | ||
} | ||
}, | ||
"bin": { | ||
@@ -18,0 +19,0 @@ "colyseus-loadtest": "./bin.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
90525
923