We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68dde4f commit 2d6d36cCopy full SHA for 2d6d36c
src/SignalR/clients/ts/FunctionalTests/EchoConnectionHandler.cs
@@ -4,20 +4,13 @@
4
using System.Buffers;
5
using System.Threading.Tasks;
6
using Microsoft.AspNetCore.Connections;
7
-using Microsoft.AspNetCore.Http.Connections;
8
9
namespace FunctionalTests
10
{
11
public class EchoConnectionHandler : ConnectionHandler
12
13
public async override Task OnConnectedAsync(ConnectionContext connection)
14
15
- var context = connection.GetHttpContext();
16
- // The 'withCredentials' tests wont send a cookie for cross-site requests
17
- if (!context.WebSockets.IsWebSocketRequest && !context.Request.Cookies.ContainsKey("testCookie"))
18
- {
19
- return;
20
- }
21
22
while (true)
23
0 commit comments