• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

edgehog-device-manager / edgehog / 23585184560 / 1
76%
main: 76%

Build:
DEFAULT BRANCH: main
Ran 26 Mar 2026 08:43AM UTC
Files 190
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Mar 2026 07:54AM UTC coverage: 17.361% (-61.3%) from 78.698%
23585184560.1

push

github

OmarBrbutovic
fix: Defer WebSocket creation to avoid close-before-connect warning

React StrictMode double-invokes effects in
development: `mount → unmount → remount`.
When the WebSocket was created synchronously inside the Observable
factory, the immediate unmount called ws.close() on a socket still
in CONNECTING state, producing an unavoidable browser-level warning
("WebSocket is closed before the connection is established").

Defer socket creation with setTimeout(0) so the cleanup function
can call clearTimeout() before any socket is ever opened, completely
eliminating the spurious connection attempt.

Signed-off-by: Omar <omar.brbutovic@secomind.com>

627 of 4402 branches covered (14.24%)

Branch coverage included in aggregate %.

1168 of 5937 relevant lines covered (19.67%)

1.89 hits per line

Source Files on job 23585184560.1
  • Tree
  • List 190
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 23585184560
  • 6f69ea8f on github
  • Prev Job for on main (#12061ee68ad568e829a0577c139d81a7528a945e.1)
  • Next Job for on main (#23596931224.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc