OLD | NEW |
---|---|
(Empty) | |
1 <h1>sockets</h1> | |
2 | |
3 <p> | |
4 The <code>sockets</code> manifest property declares which permissions are | |
5 available for the <a href="../sockets_udp.html">chrome.sockets.udp</a>, <a href= "../sockets_tcp.html">chrome.sockets.tcp</a> and <a href="../sockets_tcp_server. html">chrome.sockets.tcpServer</a> APIs. | |
not at google - send to devlin
2014/01/03 03:02:14
ben wells did some work to make $ref's work from d
rpaquay
2014/01/06 22:28:29
Done.
| |
6 </p> | |
7 | |
8 <h2 id="manifest">Sample manifest.json</h2> | |
9 <pre data-filename="manifest.json"> | |
10 { | |
11 "name": "My Sockets {{platform}}", | |
12 "sockets": { | |
13 "udp": { | |
14 // Permission for chrome.sockets.udp.send: | |
15 // The application is allowed to send udp packets | |
16 // to any host:port combination. | |
17 "send": "*" | |
18 }, | |
19 "tcp": { | |
20 // Permission for chrome.sockets.tcp.connect: | |
21 // The application is allowed to connect only to the | |
22 // tcp server on 127.0.0.1 port 80. | |
23 "connect": "127.0.0.1:80" | |
24 }, | |
25 "tcpServer": { | |
26 // Permission for chrome.sockets.tcpServer.listen: | |
27 // The application is allowed to accept new client | |
28 // connections on the local address at port 80. | |
29 "listen": "127.0.0.1:80" | |
30 } | |
31 }, | |
32 ... | |
33 } | |
34 </pre> | |
35 | |
not at google - send to devlin
2014/01/03 03:02:14
this should probably go in its own <section>, see
rpaquay
2014/01/06 22:28:29
This article follows the same pattern as "external
| |
36 <h2 id="reference">Reference</h2> | |
37 <p class="api_reference"> | |
38 {{+partials.type type:apis.manifestTypes.byName.sockets/}} | |
39 </p> | |
OLD | NEW |