While setting up IPV4 in Socket.IO, I encountered the following error:
/var/www/js/AndroRAT/node_modules/socket.io/lib/index.js:279
opts.path = opts.path || this.path();
^
TypeError: Cannot create property 'path' on string '0.0.0.0'
at Server.listen.Server.attach (/var/www/js/AndroRAT/node_modules/socket.io/lib/index.js:279:13)
at new Server (/var/www/js/AndroRAT/node_modules/socket.io/lib/index.js:59:17)
at Function.Server [as listen] (/var/www/js/AndroRAT/node_modules/socket.io/lib/index.js:44:41)
at Object.<anonymous> (/var/www/js/AndroRAT/index.js:28:20)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Why Socket.IO would default to listening on IPV6 is beyond me.