- const webSocketService = new WebSocketService(config.websocketUrl, authService);
- webSocketService.setMessageListener(messageListener(store));
- webSocketService.connect();
+ if (config.websocketUrl) {
+ const webSocketService = new WebSocketService(config.websocketUrl, authService);
+ webSocketService.setMessageListener(messageListener(store));
+ webSocketService.connect();
+ } else {
+ console.warn("WARNING: webSocketUrl is not configured on the API Server");
+ }