Client class
57
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
(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
.
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");
}
}