throw TypeError()

in src/global_map.js [66:82]


    throw TypeError(UNSUPPORTED_MAP_VALUE_MESSAGE)
  }
  return createValueSignal
}

/**
 * Creates a new `GlobalPeersMap` with a globally unique name as specified by `signalName`, and with the initial value set by `participantsStartValue`.
 */
export async function createGlobalPeersMap(participantsStartValue, signalName) {
  // Currently the values can only be counters
  // startValue should be a number
  const map = {}

  const createValueSignal = getCreateValueSignalFunction(participantsStartValue)

  map.getName = () => signalName
  map.keys = async () => {