commit c61ed6e592bf7354c29dc83e5be97bea6020e8a7 parent d04c6f15a0f64a9842c9ce3856069b4c0113d3a0 Author: finwo <finwo@pm.me> Date: Fri, 16 Nov 2018 11:11:10 +0100 ws looks to be using terminate to close the websocket Diffstat:
| M | src/custom/wsrpc.js | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/custom/wsrpc.js b/src/custom/wsrpc.js @@ -56,8 +56,9 @@ module.exports = function (location, options, callback) { // Destroy old stream if (ws) { - if ('function' === ws.close ) ws.close(); - if ('function' === ws.destroy) ws.destroy(); + if ('function' === ws.close ) ws.close(); + if ('function' === ws.destroy ) ws.destroy(); + if ('function' === ws.terminate) ws.terminate(); ws = false; }