Fixing disconnection; production buildout

This commit is contained in:
James Barnsley
2020-10-02 22:48:12 +13:00
parent 555d7e717a
commit fc2a1c9a8c
5 changed files with 28 additions and 24 deletions

View File

@ -114611,8 +114611,8 @@ var SnapStream = /*#__PURE__*/function () {
}
};
this.streamsocket.onopen = function (ev) {
console.log("Snapcast web streaming connected");
this.streamsocket.onopen = function (e) {
console.log('SnapStream socket opened', e);
var hello = new HelloMessage();
hello.mac = "00:00:00:00:00:00";
hello.arch = "web";
@ -114629,13 +114629,14 @@ var SnapStream = /*#__PURE__*/function () {
}, 1000);
};
this.streamsocket.onerror = function (ev) {
alert("error: " + ev.type);
}; //this.onError(ev);
this.streamsocket.onerror = function (e) {
console.error('SnapStream socket error', e);
};
this.streamsocket.onclose = function (e) {
console.log('SnapStream socket closed', e);
this.streamsocket.onclose = function (ev) {
stop();
_this9.stop();
}; // this.ageBuffer = new Array<number>();
@ -114650,7 +114651,7 @@ var SnapStream = /*#__PURE__*/function () {
msg.id = ++this.msgId;
if (this.streamsocket.readyState != this.streamsocket.OPEN) {
stop();
this.stop();
} else {
this.streamsocket.send(msg.serialize());
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -106,7 +106,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1601627320";
var build = "1601632041";
var version = "3.52.4";
// Construct the script tag