|
@@ -7,6 +7,11 @@ import Logger from '../utils/Logger';
|
|
|
import { DeltaStrategyConfig } from './ConfigurationManager';
|
|
|
import WebSocket from 'ws';
|
|
|
|
|
|
+// Ensure WebSocket is available globally when running under Node.js
|
|
|
+if (typeof globalThis.WebSocket === 'undefined') {
|
|
|
+ (globalThis as any).WebSocket = WebSocket;
|
|
|
+}
|
|
|
+
|
|
|
// Sprint 1 Components
|
|
|
import { OrderLifecycleManager, LifecycleConfig } from '../services/OrderLifecycleManager';
|
|
|
import { PricingEngine, PricingConfig } from '../services/PricingEngine';
|