Skip to content

Commit

Permalink
Remove node 4 websocket check
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Dec 23, 2024
1 parent 0ca5038 commit 4570838
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/kadira.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ const { CoreEvent, Monti: KadiraCore, Feature } = Npm.require('@monti-apm/core')

const DEBUG_PAYLOAD_SIZE = process.env.MONTI_DEBUG_PAYLOAD_SIZE === 'true';

// The Meteor versions with Node 4 did not support promise.finally
const WEBSOCKETS_SUPPORTED = parseInt(process.versions.node.split('.')[0], 10) > 4;

Kadira.models = {};
Kadira.options = {};

Expand Down Expand Up @@ -131,10 +128,7 @@ Kadira.connect = function (appId, appSecret, options) {
Kadira._sendAppStats();
Kadira._schedulePayloadSend();

if (
WEBSOCKETS_SUPPORTED &&
Kadira.coreApi.featureSupported(Feature.WEBSOCKETS)
) {
if (Kadira.coreApi.featureSupported(Feature.WEBSOCKETS)) {
logger('websockets supported');
Kadira.coreApi._initWebSocket();

Expand Down

0 comments on commit 4570838

Please sign in to comment.