clientObject.protocol
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:
|
Protocol |
Description |
|---|---|
|
rtmp |
RTMP over a persistent socket connection. |
|
rtmpt |
RTMP tunneled over HTTP. |
|
rtmps |
RTMP over an SSL (Secure Socket Layer) connection. |
|
rtmpe |
An encrypted RTMP connection. |
|
rtmpte |
An encrypted RTMP connection tunneled over HTTP. |
Flash Communication Server 1
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 RTMP");
} else if(clientOjb.protocol == "rtmpt") {
trace("Client connected over RTMP tunneled over HTTP");
}
}