{{title}}

Status: NO-STATUS

The socket example demonstrates how to use the TCP and UDP socket API.
First set a server address in the form of 'hostname:port', then push the "Connect" button to establish a connection.
"Send" button sends the message of the text area to the the remote host. Any data recieved back will be output to the status log.
For example, try connecting to a TCP echo server that will reply with whatever bytes you send, or connect to a web server and send a GET request.
"Close" button closes the connection.

Create a local server:

The "Listen" button can be used create a local TCP or UDP echo server listenting on the port specified. This is implemented using the 'chrome.socket' javascript API which will only work when this application is run as a packaged app.

Port: