File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
src/android/com/knowledgecode/cordova/websocket Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,12 @@ The size of message that can transmit and receive at a time depends on heap size
132
132
Closes the WebSocket connection or connection attempt, if any.
133
133
134
134
## Change Log
135
+ #### 0.8.2
136
+ * fixed the constructor error on 4.4 or later (thanks to @digigm )
137
+
135
138
#### 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
138
141
139
142
#### 0.8.0
140
143
* performance tuning (about 5% to 15% faster than previous versions)
Original file line number Diff line number Diff line change 3
3
<plugin xmlns =" http://apache.org/cordova/ns/plugins/1.0"
4
4
xmlns : android =" http://schemas.android.com/apk/res/android"
5
5
id =" com.knowledgecode.cordova.websocket"
6
- version =" 0.8.1 " >
6
+ version =" 0.8.2 " >
7
7
<name >WebSocket for Android</name >
8
8
<description >Cordova WebSocket Plugin for Android</description >
9
9
<license >Apache 2.0</license >
Original file line number Diff line number Diff line change 32
32
* This plugin is using Jetty under the terms of the Apache License v2.0.
33
33
*
34
34
* @author KNOWLEDGECODE <knowledgecode@gmail.com>
35
- * @version 0.8.0
35
+ * @version 0.8.2
36
36
*/
37
37
public class WebSocket extends CordovaPlugin {
38
38
Original file line number Diff line number Diff line change 22
22
/**
23
23
* Cordova WebSocket Plugin for Android
24
24
* @author KNOWLEDGECODE <knowledgecode@gmail.com>
25
- * @version 0.8.1
25
+ * @version 0.8.2
26
26
*/
27
27
( function ( window ) {
28
28
'use strict' ;
166
166
'this DOM object constructor cannot be called as a function.' ) ;
167
167
}
168
168
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 ) ) ) ) ( ) ;
170
170
}
171
171
switch ( arguments . length ) {
172
172
case 0 :
You can’t perform that action at this time.
0 commit comments