sockets

The sockets manifest property declares which permissions are available for the sockets.udp, sockets.tcp and sockets.tcpServer APIs.

Sample manifest.json

{
  "name": "My Sockets app",
  "sockets": {
    "udp": {
      // Permission for chrome.sockets.udp.send:
      // The application is allowed to send udp packets
      // to any host:port combination.
      "send": "*"
    },
    "tcp": {
      // Permission for chrome.sockets.tcp.connect:
      // The application is allowed to connect only to the
      // tcp server on 127.0.0.1 port 80.
      "connect": "127.0.0.1:80"
    },
    "tcpServer": {
      // Permission for chrome.sockets.tcpServer.listen:
      // The application is allowed to accept new client
      // connections on the local address at port 80.
      "listen": "127.0.0.1:80"
    }
  },
  ...
}

Reference

The sockets manifest property declares which sockets operations an app can issue.
object (optional) udp The udp manifest property declares which sockets.udp operations an app can issue.
SocketHostPatterns (optional) bind

The host:port pattern for bind operations.

SocketHostPatterns (optional) send

The host:port pattern for send operations.

SocketHostPatterns (optional) multicastMembership

The host:port pattern for joinGroup operations.

object (optional) tcp The tcp manifest property declares which sockets.tcp operations an app can issue.
SocketHostPatterns (optional) connect

The host:port pattern for connect operations.

object (optional) tcpServer The tcpServer manifest property declares which sockets.tcpServer operations an app can issue.
SocketHostPatterns (optional) listen

The host:port pattern for listen operations.