setConnectionProfile(boolean, String, String, String, String) method

Set the value of host and port for the connection.

Syntax

public void setConnectionProfile (
    boolean isHttpRequest,
    String host,
    String port,
    String relayserverURLTemplate,
    String farmID
)

Parameters

Example 1

clientConnection.setConnectionProfile(true,<Host>,<port>, <Relay server URL template>, <Relay server Farm Id>);