__construct() public method

public __construct ( $hostname, $opts, $channel = null )
$hostname string
$opts array - 'update_metadata': (optional) a callback function which takes in a metadata array, and returns an updated metadata array - 'grpc.primary_user_agent': (optional) a user-agent string
$channel Channel An already created Channel object
Example #1
-1
 public function __construct($hostname, $opts)
 {
     parent::__construct($hostname, $opts);
 }
Example #2
-1
 public function __construct($hostname, $opts, $channel = null)
 {
     parent::__construct($hostname, $opts, $channel);
 }