mobility-toolbox-js
Version:
Toolbox for JavaScript applications in the domains of mobility and logistics.
11 lines (10 loc) • 319 B
JavaScript
/**
* Get the websocket channel suffix, depending on the current mode.
* @param {String} mode Mode 'topographic' ou 'schematic'.
* @param {String[]} modes List of modes
* @private
*/
const getModeSuffix = (mode, modes) => {
return mode === modes.SCHEMATIC ? '_schematic' : '';
};
export default getModeSuffix;