MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / listChannels

Function listChannels

media/livestream/listChannels.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const livestreamServiceClient = new LivestreamServiceClient();
31
32 async function listChannels() {
33 const iterable = await livestreamServiceClient.listChannelsAsync({
34 parent: livestreamServiceClient.locationPath(projectId, location),
35 });
36 console.info('Channels:');
37 for await (const response of iterable) {
38 console.log(response.name);
39 }
40 }
41
42 listChannels();
43 // [END livestream_list_channels]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected