|   | ||
|  | ||
|   | ||
This section provides a summary of the properties and methods of the XMLSocket class. Table 10-2 shows the methods of the XMLSocket class.
| Method | Explanation | 
|---|---|
| close | Closes the connection to the socket server. | 
| connect | Connects to the socket server. You need to specify the server address and port. | 
| send | Sends data to the server. Usually used with XML information. | 
Table 10-3 lists the event handlers for the XMLSocket class.
| Event | Explanation | 
|---|---|
| onClose | Called when the connection to the socket server is closed. | 
| onConnect | Called when a connection is made to the socket server. | 
| onData | Called when the data is downloaded from the server. | 
| onXML | Called when the data has been parsed into an XML object. |