Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > Client class > Client.protocol | |||
Flash Communication Server MX 1.0
clientObject.protocol
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 (RTMP over a persistent socket connection)rtmpt (RTMP tunneled using the HTTP protocol)rtmps (RTMP over an SSL connection)For more information about the HTTP tunneling feature in Flash Communication Server MX 1.0, see the NetConnection.connect() entry in the Client-Side ActionScript Language Reference for Flash Media Server 2.
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");
}
}