Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For TCP connections, the callback passed to socket.read will only be executed when there is new data available. The <a href="https://github.com/GoogleChrome/chrome-app-samples/blob/master/tcpserver/tcp-server.js#L255" rel="nofollow">sample code mentioned</a> was fixed to only use the callback instead of the setInterval.</p> <p>The Network documentation is indeed outdated and we are working hard to update it. If you want to avoid the risk of outdated docs during these days of quickly changing APIs, you should always check the <a href="http://developer.chrome.com/apps/api_index.html" rel="nofollow">API reference docs</a> - those are generated directly from the code and don't need editorial work. If you are feeling "hacky" :-) you can also look directly at the Chromium <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/api/" rel="nofollow">source code API definitions</a> (<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/api/socket.idl?view=markup" rel="nofollow">this one is for the socket API</a>)</p> <p>Last, but not least, for <a href="http://sublimetext.com" rel="nofollow">Sublime Text</a> users, there is a <a href="https://github.com/mangini/chrome-apis-sublime" rel="nofollow">Sublime Chrome Apps and Extensions plugin</a>. It's not finished yet, but you can already get code completion, CSP validation and some boilerplates for bootstrapping. Install it through the Sublime <a href="http://wbond.net/sublime_packages/package_control" rel="nofollow">Package Manager</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload