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

supabase / realtime-js / 15538612883

09 Jun 2025 03:45PM UTC coverage: 89.6% (-0.3%) from 89.872%
15538612883

Pull #484

github

web-flow
Merge d143811b3 into 6c5843655
Pull Request #484: [DO NOT MERGE] fix: make esm compatible

363 of 409 branches covered (88.75%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 4 files covered. (100.0%)

12 existing lines in 2 files now uncovered.

1317 of 1466 relevant lines covered (89.84%)

54.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

12.5
/src/WebSocket.ts
1
// Node.js WebSocket entry point
1✔
2

UNCOV
3
let WebSocketImpl: any
×
4

UNCOV
5
if (typeof window === 'undefined') {
×
6
  // Node.js environment
7
  // eslint-disable-next-line @typescript-eslint/no-var-requires
8
  WebSocketImpl = require('ws')
×
UNCOV
9
} else {
×
10
  // Browser environment
UNCOV
11
  WebSocketImpl = window.WebSocket
×
UNCOV
12
}
×
13

UNCOV
14
export default WebSocketImpl
×
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