The channel name as provided during channel creation. If it was not specifed, the default channel name is returned ('locations/us-central1/channels/firebase').
Publishes provided events to this channel. If channel was created with allowedEventTypes and event type is not on that list, the event is ignored.
Channel.allowedEventTypes
List of event types allowed by this channel for publishing. Other event types are ignored.
Signature:
readonlyallowedEventTypes?:string[];
Channel.eventarc
The Eventarc service instance associated with the current Channel.
Signature:
geteventarc():Eventarc;
Example
varapp=channel.eventarc;
Channel.name
The channel name as provided during channel creation. If it was not specifed, the default channel name is returned ('locations/us-central1/channels/firebase').
Signature:
getname():string;
Channel.publish()
Publishes provided events to this channel. If channel was created with allowedEventTypes and event type is not on that list, the event is ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-29 UTC."],[],[],null,["Eventarc Channel.\n\n**Signature:** \n\n export declare class Channel \n\nProperties\n\nMethods\n\nChannel.allowedEventTypes\n\nList of event types allowed by this channel for publishing. Other event types are ignored.\n\n**Signature:** \n\n readonly allowedEventTypes?: string[];\n\nChannel.eventarc\n\nThe [Eventarc](./firebase-admin.eventarc.eventarc.md#eventarc_class) service instance associated with the current `Channel`.\n\n**Signature:** \n\n get eventarc(): Eventarc;\n\nExample \n\n var app = channel.eventarc;\n\nChannel.name\n\nThe channel name as provided during channel creation. If it was not specifed, the default channel name is returned ('locations/us-central1/channels/firebase').\n\n**Signature:** \n\n get name(): string;\n\nChannel.publish()\n\nPublishes provided events to this channel. If channel was created with `allowedEventTypes` and event type is not on that list, the event is ignored.\n\n**Signature:** \n\n publish(events: CloudEvent | CloudEvent[]): Promise\u003cvoid\u003e;\n\nParameters\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e"]]