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 |
public function __construct($hostname, $opts) { parent::__construct($hostname, $opts); }
public function __construct($hostname, $opts, $channel = null) { parent::__construct($hostname, $opts, $channel); }