@supabase/realtime-js
Version:
Listen to realtime updates to your PostgreSQL database
13 lines • 361 B
JavaScript
// Node.js WebSocket entry point
let WebSocketImpl;
if (typeof window === 'undefined') {
// Node.js environment
// eslint-disable-next-line @typescript-eslint/no-var-requires
WebSocketImpl = require('ws');
}
else {
// Browser environment
WebSocketImpl = window.WebSocket;
}
export default WebSocketImpl;
//# sourceMappingURL=WebSocket.js.map