WebSocketMiddlewareExtensions.UseWebSockets Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseWebSockets(IApplicationBuilder) |
Adds the WebSocketMiddleware to the request pipeline. |
UseWebSockets(IApplicationBuilder, WebSocketOptions) |
Adds the WebSocketMiddleware to the request pipeline. |
UseWebSockets(IApplicationBuilder)
Adds the WebSocketMiddleware to the request pipeline.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseWebSockets(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseWebSockets : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseWebSockets (app As IApplicationBuilder) As IApplicationBuilder
Parameters
The IApplicationBuilder to configure.
Returns
The IApplicationBuilder.
Applies to
UseWebSockets(IApplicationBuilder, WebSocketOptions)
Adds the WebSocketMiddleware to the request pipeline.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseWebSockets(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::WebSocketOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.WebSocketOptions options);
static member UseWebSockets : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.WebSocketOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseWebSockets (app As IApplicationBuilder, options As WebSocketOptions) As IApplicationBuilder
Parameters
The IApplicationBuilder to configure.
- options
- WebSocketOptions
The WebSocketOptions to be used for the WebSocketMiddleware.
Returns
The IApplicationBuilder.