Improved some websocket error handling.

This commit is contained in:
Ylian Saint-Hilaire
2019-01-02 18:34:50 -08:00
parent 6ecba46362
commit 7873bbba3f
10 changed files with 45 additions and 37 deletions

View File

@@ -729,7 +729,7 @@ function AmtStackCreateService(wsmanStack) {
e = null;
try {
es = atob(responses.Body['EventRecords'][i]);
e = new Buffer(es);
e = Buffer.from(es);
} catch (ex) {
console.log(ex + " " + responses.Body['EventRecords'][i])
}