Commit e11bed8b authored by 's avatar

No commit message

No commit message
parent ccbc1ab8
This diff is collapsed.
......@@ -67,7 +67,7 @@ if (http.Server && http.WebSocketServer) {
socket_dict[socket.socketId_] = {
socket: socket
};
chrome.socket.getInfo(socket.socketId_, function (result) {
chrome.sockets.tcp.getInfo(socket.socketId_, function (result) {
if ((result !== undefined) && (result.connected)) {
socket_dict[socket.socketId_].peer = result.peerAddress + ':' + result.peerPort;
updateStatus(socket_dict);
......
......@@ -6,10 +6,17 @@
"minimum_chrome_version": "44",
"offline_enabled": true,
"manifest_version": 2,
"permissions": ["system.network", {
"socket": [
"tcp-connect",
"tcp-listen"]}],
"permissions": ["system.network"],
"sockets": {
"tcp": {
"connect": "*"
},
"tcpServer": {
"listen": "*"
}
},
"app": {
"background": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment