Chat freely about anything...

User avatar
By EssamEid614
#72572 hello,
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 :lol: but basically its still waiting for more data or still loading.
so my question is this , how can you correctly close a socket ?
Thanks in advance !