socket-io-helpers.ts 186 B

12345678
  1. export const RoomPrefix = {
  2. USER: 'user',
  3. PAGE: 'page',
  4. };
  5. export const getRoomNameWithId = (roomPrefix: string, roomId: string): string => {
  6. return `${roomPrefix}:${roomId}`;
  7. };