Files
core2026/packages/common/src/realtime/keys.ts
T

10 lines
344 B
TypeScript

const normalizeProfileName = (profileName: string): string => {
const trimmed = profileName.trim();
return trimmed.length > 0 ? trimmed : 'unknown';
};
export const buildGameEventChannel = (profileName: string): string => {
const normalized = normalizeProfileName(profileName);
return `sammo:${normalized}:realtime:events`;
};