i have been developing some code over the nodemcu development kit for esp8266 and i came across something strange , on using the socket:close() at the end of socket:on("receive",function(socket,Recieved) function , the browser always returns that connection was reset by the server. also if i don't use it , i can see that a web page is fully loaded however my browser still has that rotating blue thingy dont know whats it called
so my question is this , how can you correctly close a socket ?
Thanks in advance !