Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_buildSetupFrame(config: ClientConfig): SetupFrame {
const {keepAlive, lifetime, metadata} = config.setup;
return {
flags: FLAGS.METADATA,
keepAlive,
lifetime,
majorVersion: MAJOR_VERSION,
minorVersion: MINOR_VERSION,
metadataMimeType: 'application/binary',
metadata,
dataMimeType: 'application/binary',
data: undefined,
resumeToken: null,
streamId: CONNECTION_STREAM_ID,
type: FRAME_TYPES.SETUP,
};
}
}