Use the chrome.socket module to send and receive data over the network using TCP and UDP connections.

Read the Network Communications documentation to find out how to use this API.