Convert to chrome.sockets