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 |