this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add more verbose logging

+18 -2
+18 -2
cicd/index.js
··· 84 84 // the repo should be updated now 85 85 }); 86 86 87 + ws.addEventListener("open", () => { 88 + console.log("Connected to endpoint"); 89 + }); 90 + 87 91 // when connection is closed or errors 88 92 // just connect again 89 - ws.addEventListener("close", () => { 93 + ws.addEventListener("close", (ev) => { 94 + console.log( 95 + "Disconnected from endpoint because: ", 96 + ev.reason, 97 + "\nReconnecting..." 98 + ); 90 99 connect(); 91 100 }); 92 - ws.addEventListener("error", () => { 101 + ws.addEventListener("error", (ev) => { 102 + console.log( 103 + "Disconnected from endpoint because: ", 104 + ev, 105 + "\nReconnecting..." 106 + ); 93 107 connect(); 94 108 }); 109 + 110 + console.log("Set up ws:", ws, ws.readyState); 95 111 }; 96 112 97 113 // launch connection and keep alive