9 lines
189 B
TypeScript
9 lines
189 B
TypeScript
|
|
export const getPageLevelSocketRoomId = (
|
||
|
|
pageId: string,
|
||
|
|
currentGitBranch?: string,
|
||
|
|
) => {
|
||
|
|
return currentGitBranch
|
||
|
|
? `${pageId}-${currentGitBranch}`
|
||
|
|
: (pageId as string);
|
||
|
|
};
|