XMLSocket

Availability
Flash Player 5.

Description
Implements client sockets that allow the computer running Flash Player to communicate with a server computer identified by an IP address or domain name. This class is useful for client-server applications that require low latency, such as real-time chat systems. A traditional HTTP-based chat solution frequently polls the server and downloads new messages using an HTTP request. In contrast, an XMLSocket chat solution maintains an open connection to the server, which allows the server to immediately send incoming messages without a request from the client.

To use the XMLSocket class, the server computer must run a daemon that understands the protocol used by the XMLSocket class.

A new XMLSocket object must be created before using the methods of this class..

Methods
close  connect  send 

Events
onClose  onConnect  onData  onXML 

XMLSocket