Skip to content

Commit

Permalink
Merge pull request #8514 from aspandey/remove_global_websocket
Browse files Browse the repository at this point in the history
noobaa/core:  remove global websocket
  • Loading branch information
aspandey authored Nov 10, 2024
2 parents c436cb6 + ee6cf99 commit fc266c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rpc/rpc_ws.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright (C) 2016 NooBaa */
'use strict';

const WS = global.WebSocket || require('ws');
const WS = require('ws');

const dbg = require('../util/debug_module')(__filename);
const http_utils = require('../util/http_utils');
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/rpc_ws_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const url = require('url');
const EventEmitter = require('events').EventEmitter;
const RpcWsConnection = require('./rpc_ws');
const dbg = require('../util/debug_module')(__filename);
const WS = global.WebSocket || require('ws');
const WS = require('ws');


/**
Expand Down

0 comments on commit fc266c3

Please sign in to comment.