Share via


JsonHubProtocol.GetMessageBytes(HubMessage) Method

Definition

Converts the specified HubMessage to its serialized representation.

public:
 virtual ReadOnlyMemory<System::Byte> GetMessageBytes(Microsoft::AspNetCore::SignalR::Protocol::HubMessage ^ message);
public ReadOnlyMemory<byte> GetMessageBytes (Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
abstract member GetMessageBytes : Microsoft.AspNetCore.SignalR.Protocol.HubMessage -> ReadOnlyMemory<byte>
override this.GetMessageBytes : Microsoft.AspNetCore.SignalR.Protocol.HubMessage -> ReadOnlyMemory<byte>
Public Function GetMessageBytes (message As HubMessage) As ReadOnlyMemory(Of Byte)

Parameters

message
HubMessage

The message to convert.

Returns

The serialized representation of the message.

Implements

Applies to