EndlessStreamingServiceBeta.viaToken constructor
EndlessStreamingServiceBeta.viaToken(})
Creates a EndlessStreamingService interface using a token. You are responsible for updating the token when it expires.
Implementation
factory EndlessStreamingServiceBeta.viaToken(String typeToken, String token,
{String? cloudSpeechEndpoint}) =>
EndlessStreamingServiceBeta._(
CallOptions(metadata: {'authorization': '$typeToken $token'}),
cloudSpeechEndpoint: cloudSpeechEndpoint);