Skip to content

Commit e3898f3

Browse files
committed
build files
1 parent 2ad7a09 commit e3898f3

File tree

7 files changed

+26567
-20982
lines changed

7 files changed

+26567
-20982
lines changed

angular-websocket.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
this.initialTimeout = options && options.initialTimeout || 500; // 500ms
5555
this.maxTimeout = options && options.maxTimeout || 5 * 60 * 1000; // 5 minutes
5656
this.reconnectIfNotNormalClose = options && options.reconnectIfNotNormalClose || false;
57-
this.binaryType = options && options.binaryType || 'blob';
5857

5958
this._reconnectAttempts = 0;
6059
this.sendQueue = [];
@@ -114,7 +113,6 @@
114113
this.socket.onopen = angular.bind(this, this._onOpenHandler);
115114
this.socket.onerror = angular.bind(this, this._onErrorHandler);
116115
this.socket.onclose = angular.bind(this, this._onCloseHandler);
117-
this.socket.binaryType = this.binaryType;
118116
}
119117
};
120118

@@ -123,7 +121,7 @@
123121
var data = this.sendQueue.shift();
124122

125123
this.socket.send(
126-
isString(data.message) || this.binaryType != "blob" ? data.message : JSON.stringify(data.message)
124+
isString(data.message) ? data.message : JSON.stringify(data.message)
127125
);
128126
data.deferred.resolve();
129127
}
@@ -194,7 +192,7 @@
194192
});
195193
} else {
196194
self.notifyCloseCallbacks(event);
197-
self.safeDigest(autoApply);
195+
self.safeDigest(true);
198196
}
199197
if ((this.reconnectIfNotNormalClose && event.code !== this._normalCloseCode) || this._reconnectableStatusCodes.indexOf(event.code) > -1) {
200198
this.reconnect();
@@ -209,7 +207,7 @@
209207
});
210208
} else {
211209
self.notifyErrorCallbacks(event);
212-
self.safeDigest(autoApply);
210+
self.safeDigest(true);
213211
}
214212
};
215213

angular-websocket.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)