Replace socket.end() call with socket.destroy() in order to completely close connection on the server side.
Replace socket.end() call with socket.destroy() in order to completely close connection on the server side.

thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin