feat: implement real-time event handling and SSE support; add event publishing and subscription mechanisms
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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`;
|
||||
};
|
||||
Reference in New Issue
Block a user