Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Sources/common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ const StreamDeck = (function () {
var events = ELGEvents.eventEmitter();

function connect (args) {
var self = this;
inPort = args[0];
inUUID = args[1];
inMessageType = args[2];
Expand Down Expand Up @@ -1047,6 +1048,8 @@ const StreamDeck = (function () {
// Websocket is closed
var reason = WEBSOCKETERROR(evt);
console.warn('[STREAMDECK]***** WEBOCKET CLOSED **** reason:', reason);
// retry after delay
setTimeout(self.connect(args), 5000);
};

websocket.onmessage = function (evt) {
Expand Down