(url, protocols = null, headers = null, binaryType)
| 139 | WebSocketInstance.CLOSED = 3; |
| 140 | |
| 141 | const connect = function(url, protocols = null, headers = null, binaryType) { |
| 142 | return new Promise((resolve, reject) => { |
| 143 | exec(instanceId => resolve(new WebSocketInstance(url, instanceId)), reject, "WebSocketPlugin", "connect", [url, protocols, binaryType, headers]); |
| 144 | }); |
| 145 | }; |
| 146 | |
| 147 | const listClients = function() { |
| 148 | return new Promise((resolve, reject) => { |