@5minds/node-red-dashboard-2-processcube-chat 0.1.1-add-functionality-5f8f20-mde6na5h → 0.1.1-add-functionality-483501-mdqg8xpt
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -249,13 +249,7 @@ export default {
|
|
|
249
249
|
sendToNodeRED(payload, signals, fallbackMessage = null) {
|
|
250
250
|
this.$socket.emit('widget-action', this.id, { payload });
|
|
251
251
|
|
|
252
|
-
const responseTimeout = setTimeout(() => {
|
|
253
|
-
console.warn('No response from Node-RED after 30 seconds');
|
|
254
|
-
this.sendErrorResponse(signals, fallbackMessage || 'No response from server. Please try again.');
|
|
255
|
-
}, 30000);
|
|
256
|
-
|
|
257
252
|
this.$socket.once('msg-input:' + this.id, (msg) => {
|
|
258
|
-
clearTimeout(responseTimeout);
|
|
259
253
|
this.handleNodeREDResponse(msg, signals);
|
|
260
254
|
});
|
|
261
255
|
},
|