Skip to content

Commit 8e6de3d

Browse files
committed
chore: bump 1.0.14
1 parent f845f5a commit 8e6de3d

File tree

5 files changed

+14076
-9595
lines changed

5 files changed

+14076
-9595
lines changed

angular-websocket.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
this.url = url || 'Missing URL';
4242
this.ssl = /(wss)/i.test(this.url);
4343

44+
// this.binaryType = '';
4445
// this.extensions = '';
4546
// this.bufferedAmount = 0;
4647
// this.trasnmitting = false;
@@ -53,7 +54,6 @@
5354
this.initialTimeout = options && options.initialTimeout || 500; // 500ms
5455
this.maxTimeout = options && options.maxTimeout || 5 * 60 * 1000; // 5 minutes
5556
this.reconnectIfNotNormalClose = options && options.reconnectIfNotNormalClose || false;
56-
this.binaryType = options && options.binaryType || 'blob';
5757

5858
this._reconnectAttempts = 0;
5959
this.sendQueue = [];
@@ -109,7 +109,6 @@
109109
$WebSocket.prototype._connect = function _connect(force) {
110110
if (force || !this.socket || this.socket.readyState !== this._readyStateConstants.OPEN) {
111111
this.socket = $websocketBackend.create(this.url, this.protocols);
112-
this.socket.binaryType = this.binaryType;
113112
this.socket.onmessage = angular.bind(this, this._onMessageHandler);
114113
this.socket.onopen = angular.bind(this, this._onOpenHandler);
115114
this.socket.onerror = angular.bind(this, this._onErrorHandler);
@@ -122,7 +121,7 @@
122121
var data = this.sendQueue.shift();
123122

124123
this.socket.send(
125-
data.message
124+
isString(data.message) ? data.message : JSON.stringify(data.message)
126125
);
127126
data.deferred.resolve();
128127
}

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.

dist/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)