Skip to content

Commit 592a393

Browse files
committed
Merge branch 'hotfix'
2 parents 0bbe1d2 + 0ad001e commit 592a393

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,12 @@ The size of message that can transmit and receive at a time depends on heap size
132132
Closes the WebSocket connection or connection attempt, if any.
133133

134134
## Change Log
135+
#### 0.8.2
136+
* fixed the constructor error on 4.4 or later (thanks to @digigm)
137+
135138
#### 0.8.1
136-
* fixed frame aggregation error (thanks to @Atsyn)
137-
* fixed binary transmission for the case of using the plugin on 4.4 or later
139+
* fixed the frame aggregation error (thanks to @Atsyn)
140+
* fixed the binary transmission for the case of using the plugin on 4.4 or later
138141

139142
#### 0.8.0
140143
* performance tuning (about 5% to 15% faster than previous versions)

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
id="com.knowledgecode.cordova.websocket"
6-
version="0.8.1">
6+
version="0.8.2">
77
<name>WebSocket for Android</name>
88
<description>Cordova WebSocket Plugin for Android</description>
99
<license>Apache 2.0</license>

src/android/com/knowledgecode/cordova/websocket/WebSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* This plugin is using Jetty under the terms of the Apache License v2.0.
3333
*
3434
* @author KNOWLEDGECODE <knowledgecode@gmail.com>
35-
* @version 0.8.0
35+
* @version 0.8.2
3636
*/
3737
public class WebSocket extends CordovaPlugin {
3838

www/websocket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Cordova WebSocket Plugin for Android
2424
* @author KNOWLEDGECODE <knowledgecode@gmail.com>
25-
* @version 0.8.1
25+
* @version 0.8.2
2626
*/
2727
(function (window) {
2828
'use strict';
@@ -166,7 +166,7 @@
166166
'this DOM object constructor cannot be called as a function.');
167167
}
168168
if (!WebSocket.pluginOptions.override && BuiltinWebSocket) {
169-
return new BuiltinWebSocket(url, protocols);
169+
return new (BuiltinWebSocket.bind.apply(BuiltinWebSocket, [].concat(this, Array.prototype.slice.call(arguments))))();
170170
}
171171
switch (arguments.length) {
172172
case 0:

0 commit comments

Comments
 (0)