Home Reference Source Repository

lib/defaults.js

export const getTimeStamp = () => new Date().toTimeString()

export const getActiveEvents = () => [ 'mousemove', 'keydown', 'wheel', 'DOMMouseScroll', 'mouseWheel', 'mousedown', 'touchstart', 'touchmove', 'MSPointerDown', 'MSPointerMove' ]

export const getUseFastState = () => true
export const getUseLocalState = () => true
export const getUseWebRTCState = () => true
export const getUseWebSocketsState = () => true

export const getThresholds = ({ mouse = 20, phaseOffMS = 2000, phaseOnMS = 0 } = {}) => ({ mouse, phaseOffMS, phaseOnMS })

export const getLevel = () => 'error'