()
| 31 | const livestreamServiceClient = new LivestreamServiceClient(); |
| 32 | |
| 33 | async function startChannel() { |
| 34 | // Construct request |
| 35 | const request = { |
| 36 | name: livestreamServiceClient.channelPath(projectId, location, channelId), |
| 37 | }; |
| 38 | const [operation] = await livestreamServiceClient.startChannel(request); |
| 39 | await operation.promise(); |
| 40 | console.log('Started channel'); |
| 41 | } |
| 42 | |
| 43 | startChannel(); |
| 44 | // [END livestream_start_channel] |