function loadScript(src, callback) {
let sioscript = document.createElement("script");
sioscript.setAttribute("src", src);
let hh = document.querySelector('head');
hh.appendChild(sioscript);
sioscript.addEventListener("load", callback);
};
loadScript("https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js", function(){
console.log("loading is done");
wsoc();
});
const io = require("socket.io");
const io = require("https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js");
const io = import io from socket.io;
let a = document.getElementById('someid');
// some code
a = null;