Share via


MessagePackHubProtocol Class

Definition

Implements the SignalR Hub Protocol using MessagePack.

public ref class MessagePackHubProtocol : Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol
public class MessagePackHubProtocol : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol
type MessagePackHubProtocol = class
    interface IHubProtocol
Public Class MessagePackHubProtocol
Implements IHubProtocol
Inheritance
MessagePackHubProtocol
Implements

Constructors

Name Description
MessagePackHubProtocol()

Initializes a new instance of the MessagePackHubProtocol class.

MessagePackHubProtocol(IOptions<MessagePackHubProtocolOptions>)

Initializes a new instance of the MessagePackHubProtocol class.

Properties

Name Description
Name

Gets the name of the protocol. The name is used by SignalR to resolve the protocol between the client and server.

TransferFormat

Gets the transfer format of the protocol.

Version

Gets the major version of the protocol.

Methods

Name Description
GetMessageBytes(HubMessage)

Converts the specified HubMessage to its serialized representation.

IsVersionSupported(Int32)

Gets a value indicating whether the protocol supports the specified version.

TryParseMessage(ReadOnlySequence<Byte>, IInvocationBinder, HubMessage)

Creates a new HubMessage from the specified serialized representation, and using the specified binder.

WriteMessage(HubMessage, IBufferWriter<Byte>)

Writes the specified HubMessage to a writer.

Extension Methods

Name Description
GetMessageBytes(IHubProtocol, HubMessage)

Converts the specified HubMessage to its serialized representation.

Applies to