cmd/static/js/sse.js
Function sse
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sse = (url, config = {}) => {
const {
onMessage,
onError,
initialBackoff = 10, // milliseconds
Function start
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const start = () => {
const source = new EventSource(url);
const configState = { initialBackoff, maxBackoff, backoffStep, backoff };
source.onopen = () => {