WebSocketOptions.SubProtocolSelector Propiedad

Definición

Obtiene o establece un delegado al que se llamará cuando se establezca un nuevo WebSocket para seleccionar el valor del encabezado de respuesta "Sec-WebSocket-Protocol". Se llamará al delegado con una lista de los protocolos proporcionados por el cliente en el encabezado de solicitud "Sec-WebSocket-Protocol".

public:
 property Func<System::Collections::Generic::IList<System::String ^> ^, System::String ^> ^ SubProtocolSelector { Func<System::Collections::Generic::IList<System::String ^> ^, System::String ^> ^ get(); void set(Func<System::Collections::Generic::IList<System::String ^> ^, System::String ^> ^ value); };
public Func<System.Collections.Generic.IList<string>,string> SubProtocolSelector { get; set; }
public Func<System.Collections.Generic.IList<string>,string>? SubProtocolSelector { get; set; }
member this.SubProtocolSelector : Func<System.Collections.Generic.IList<string>, string> with get, set
Public Property SubProtocolSelector As Func(Of IList(Of String), String)

Valor de propiedad

Func<IList<String>,String>

Comentarios

Consulte la sección 1.3 de RFC 6455 para obtener más información sobre el protocolo de enlace de WebSocket: https://tools.ietf.org/html/rfc6455#section-1.3

Se aplica a