Type Alias PublishOptions

PublishOptions: (PublishWithConstraintsOptions | PublishWithStreamOptions) & {
    publishToken: string;
    sourceName?: string;
    sourceType: SourceType;
}

Options to start publishing to a stream.

Type declaration

  • publishToken: string

    Token that allows publishing to the stream.

  • OptionalsourceName?: string

    Sets the name of the source.

    Default value is the source type.
    
  • sourceType: SourceType

    Sets the type of source published.