(instanceId, code, reason)
| 180 | * @returns {Promise} A promise that resolves when the close operation has completed. |
| 181 | */ |
| 182 | const close = function(instanceId, code, reason) { |
| 183 | return new Promise((resolve, reject) => { |
| 184 | exec(resolve, reject, "WebSocketPlugin", "close", [instanceId, code, reason]); |
| 185 | }); |
| 186 | }; |
| 187 | |
| 188 | module.exports = { connect, listClients, send, close, DEBUG }; |