Use the chrome.socket module to send and receive data over the network using TCP and UDP connections.
chrome.socket
Read the Network Communications documentation to find out how to use this API.