Client.protocol
Availability
Flash Communication Server MX 1.0
Usage
clientObject.protocol
Description
Property (read-only); a string indicating the protocol used by the client to connect to the
server. This string can have one of the following values:
(RTMP over a persistent socket connection)
rtmp
(RTMP tunneled using the HTTP protocol)
rtmpt
(RTMP over an SSL connection)
rtmps
For more information about the HTTP tunneling feature in Flash Communication Server
MX 1.0, see the
NetConnection.connect()
Reference for Flash Media Server 2.
Example
The following example checks the connection protocol used by a client upon connection to
the application:
application.onConnect(clientObj) {
if(clientObj.protocol == "rtmp") {
trace("Client connected over a persistent connection");
} else if(clientOjb.protocol == "rtmpt") {
trace("Client connected over an HTTP tunneling connection");
}
}
entry in the Client-Side ActionScript Language
Client class
57
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?