HandshakeProtocol Class

Definition

A helper class for working with SignalR handshakes.

C#
public static class HandshakeProtocol
Inheritance
HandshakeProtocol

Fields

SuccessHandshakeData

The serialized representation of a success handshake.

Methods

GetSuccessfulHandshake(IHubProtocol)

Gets the bytes of a successful handshake message.

TryParseRequestMessage(ReadOnlySequence<Byte>, HandshakeRequestMessage)

Creates a new HandshakeRequestMessage from the specified serialized representation.

TryParseResponseMessage(ReadOnlySequence<Byte>, HandshakeResponseMessage)

Creates a new HandshakeResponseMessage from the specified serialized representation.

WriteRequestMessage(HandshakeRequestMessage, IBufferWriter<Byte>)

Writes the serialized representation of a HandshakeRequestMessage to the specified writer.

WriteResponseMessage(HandshakeResponseMessage, IBufferWriter<Byte>)

Writes the serialized representation of a HandshakeResponseMessage to the specified writer.

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0