You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -78,7 +78,7 @@ When install this plugin, it adds `INTERNET` permission to `AndroidManifest.xml`
78
78
### *WebSocket(url[, protocols])*
79
79
The WebSocket(url, protocols) constructor takes one or two arguments. The first argument, url, specifies the URL to which to connect. The second, protocols, is either a string or an array of strings.
80
80
A simple code is as follows:
81
-
```JavaScript
81
+
```javascript
82
82
document.addEventListener('deviceready', function () {
83
83
var ws =newWebSocket('ws://echo.websocket.org');
84
84
@@ -113,7 +113,7 @@ This plugin has the following options. All these parameters are optional. Of cou
113
113
`origin` is a value to set the request header field. `maxConnectTime` is time to wait for connection. `override` is a flag to override the native WebSocket on Android 4.4 or later devices. Set to true if want to force them to use the plugin. In most cases, it is slower than the native WebSocket.
114
114
115
115
If want to change these parameters, need to do before creating a instance:
116
-
```JavaScript
116
+
```javascript
117
117
WebSocket.pluginOptions= {
118
118
origin:'http://example.com',
119
119
maxConnectTime:5000,
@@ -134,6 +134,7 @@ Closes the WebSocket connection or connection attempt, if any.
134
134
## Change Log
135
135
#### 0.8.1
136
136
* fixed frame aggregation error (thanks to @Atsyn)
137
+
* fixed binary transmission for the case of using the plugin on 4.4 or later
137
138
138
139
#### 0.8.0
139
140
* performance tuning (about 5% to 15% faster than previous versions)
0 commit comments