다음을 통해 공유


WebSocketOptions.SubProtocolSelector 속성

정의

'Sec-WebSocket-Protocol' 응답 헤더의 값을 선택하기 위해 새 WebSocket이 설정될 때 호출될 대리자를 가져오거나 설정합니다. 대리자는 '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)

속성 값

설명

WebSocket 핸드셰이크에 대한 자세한 내용은 RFC 6455 섹션 1.3을 참조하세요. https://tools.ietf.org/html/rfc6455#section-1.3

적용 대상