Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const keepAliveFrames = every(keepAlive).map(() => ({
data: null,
flags: FLAGS.RESPOND,
lastReceivedPosition: 0,
streamId: CONNECTION_STREAM_ID,
type: FRAME_TYPES.KEEPALIVE,
}));
connection.send(keepAliveFrames);