Refine onboarding state and nickname checks

This commit is contained in:
dahyeon committed 2026-04-21 12:42:24 -07:00
1 parent 5579db54da
commit 9c013f7d4f
33 files changed
+1523 -119

No files matched your search

+20
View File
@@ -106,6 +106,26 @@ export class NatsClient {
await client.flush();
}
async request<TRequest = unknown, TResponse = unknown>(
subject: string,
data: TRequest,
options?: { timeoutMs?: number | undefined },
): Promise<TResponse> {
const requestOptions =
options?.timeoutMs !== undefined
? {
timeout: options.timeoutMs,
}
: undefined;
const response = await this.getConnection().request(
subject,
this.stringCodec.encode(JSON.stringify(data)),
requestOptions,
);
return this.decodeMessage<TResponse>(response);
}
respond(msg: Msg, data: unknown): Promise<void> {
if (!msg.reply) {
this.logger.warn(