Ansower, must write to the manifest.webapp is “permissions”->”tcp-socket” and “privileged”.
"type": "privileged",
"permissions": {
"tcp-socket": {
"description": "connect to IRC servers."
}
},
see also: TCP Socket API @MDN
common oversight. lets try.