Flash Media Server Developer Documentation

Client.protocol

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.

Availability

Flash Communication Server 1

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 RTMP");
    } else if(clientOjb.protocol == "rtmpt") {
        trace("Client connected over RTMP tunneled over HTTP");
    }
}