|
|
|
|
@ -225,11 +225,12 @@ namespace WebSocketSharp.Net.WebSockets
|
|
|
|
|
public override IEnumerable<string> SecWebSocketProtocols {
|
|
|
|
|
get {
|
|
|
|
|
var protocols = _context.Request.Headers["Sec-WebSocket-Protocol"];
|
|
|
|
|
if (protocols != null)
|
|
|
|
|
if (protocols != null) {
|
|
|
|
|
foreach (var protocol in protocols.Split (','))
|
|
|
|
|
yield return protocol.Trim ();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the value of the Sec-WebSocket-Version header included in the request.
|
|
|
|
|
|