HttpContext.IsWebSocketRequest Property


Gets a value that indicates whether the request is an AspNetWebSocket request.

 property bool IsWebSocketRequest { bool get(); };
public bool IsWebSocketRequest { get; }
member this.IsWebSocketRequest : bool
Public ReadOnly Property IsWebSocketRequest As Boolean

Property Value

true if the request is an AspNetWebSocket request; otherwise, false.


This method returns true if the request contains the initial AspNetWebSocket handshake and the WebSocket module of IIS is active.

Applies to