Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var io = require("webpack-dev-server/client/web_modules/socket.io");
io = io.connect('http://'+DEV_SERVER_IP+':8080');
var initial = true;
var currentHash = "";
if(module.hot){
console.log("[WDS] Hot Module Replacement enabled.");
}
io.on("invalid", function() {
console.log("[WDS] App updated. Recompiling...");
});
io.on("hash", function(hash) {
currentHash = hash;
});