in modules/core/src/loaders/xviz-live-loader.js [31:62]
function getSocketRequestParams(options) {
const {
logProfile = DEFAULT_LOG_PROFILE,
serverConfig,
bufferLength = 30,
// These are parent class options we want to filter
maxConcurrency,
WebSocketClass,
...passThroughOptions
} = options;
const queryParams = {
...passThroughOptions,
...serverConfig.queryParams,
profile: logProfile
};
const retryAttempts = Number.isInteger(serverConfig.retryAttempts)
? serverConfig.retryAttempts
: DEFAULT_RETRY_ATTEMPTS;
const qs = Object.keys(queryParams)
.map(key => `${key}=${queryParams[key]}`)
.join('&');
return {
url: `${serverConfig.serverUrl}?${qs}`,
logProfile,
bufferLength,
retryAttempts,
serverConfig
};
}