UNPKG

nerdbank-streams

Version:
21 lines (20 loc) 895 B
import { ControlCode } from './ControlCode'; import { QualifiedChannelId } from './QualifiedChannelId'; export declare class FrameHeader { readonly code: ControlCode; private _channel?; /** * Initializes a new instance of the `FrameHeader` class. * @param code The kind of frame this is. * @param channel The channel that this frame refers to or carries a payload for. */ constructor(code: ControlCode, channel?: QualifiedChannelId); /** The channel that this frame refers to or carries a payload for. */ get channel(): QualifiedChannelId | undefined; /** * Gets the channel that this frame refers to or carries a payload for. */ get requiredChannel(): QualifiedChannelId; /** Changes the channel.source property to reflect the opposite perspective (i.e. remote and local values switch). */ flipChannelPerspective(): void; }