Share via


MqttConnectEventRequest.CreateMqttV311ErrorResponse Method

Definition

Creates error response for MQTT protocol 3.1.1.

public Microsoft.Azure.WebPubSub.Common.MqttConnectEventErrorResponse CreateMqttV311ErrorResponse (Microsoft.Azure.WebPubSub.Common.MqttV311ConnectReturnCode code, string? message = default);
member this.CreateMqttV311ErrorResponse : Microsoft.Azure.WebPubSub.Common.MqttV311ConnectReturnCode * string -> Microsoft.Azure.WebPubSub.Common.MqttConnectEventErrorResponse
Public Function CreateMqttV311ErrorResponse (code As MqttV311ConnectReturnCode, Optional message As String = Nothing) As MqttConnectEventErrorResponse

Parameters

message
String

Returns

A error response to return caller and will drop connection.

Applies to