View comments | RSS feed

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:

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");
    }
}

Comments


micknaf said on Dec 7, 2006 at 10:23 AM :
what if client.protocol is empty string? this happens to me if more than 3000 clients are connected to media server.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fms/2/docs/00000674.html