다음을 통해 공유


HubInvocationMessage interface

Defines properties common to all Hub messages relating to a specific invocation.

Extends

Properties

headers

A MessageHeaders dictionary containing headers attached to the message.

invocationId

The ID of the invocation relating to this message. This is expected to be present for StreamInvocationMessage and CompletionMessage. It may be 'undefined' for an InvocationMessage if the sender does not expect a response.

type

A MessageType value indicating the type of this message.

Property Details

headers

A MessageHeaders dictionary containing headers attached to the message.

headers?: MessageHeaders

Property Value

invocationId

The ID of the invocation relating to this message. This is expected to be present for StreamInvocationMessage and CompletionMessage. It may be 'undefined' for an InvocationMessage if the sender does not expect a response.

invocationId?: string

Property Value

string

type

A MessageType value indicating the type of this message.

type: MessageType

Property Value