Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
noobaa/core: remove global websocket
In node v22, websocket is enabled by default nodejs/node#51594 This will cause an error on following line when the global.Websocket would be true. const WS = global.WebSocket || require('ws'); global.WebSocket: This will points to Node.js's native WebSocket, which does not include a Server class. require('ws'): The ws package includes both WebSocket and WebSocket.Server, but this fallback is skipped because global.WebSocket is already defined in Node.js v22 Signed-off-by: Ashish Pandey <aspandey@redhat.com>
- Loading branch information