❔ convert http into ws? asp.net core web api

Hello Everyone! i'm new into C# and I wonder how to create a websocket server in asp.net core web api? Here is some screenshots
No description
No description
No description
No description
No description
7 Replies
JakenVeina
JakenVeina15mo ago
that screenshot of the controller is not really readable $code
MODiX
MODiX15mo ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
JakenVeina
JakenVeina15mo ago
any relevant info in the network tab? like, what's the actual error there?
mindhardt
mindhardt15mo ago
Also: consider bit using websockets directly, take a look at SignalR
Stan
Stan15mo ago
yeah signalr takes care of stuff automagically. unless you specifically need websockets, go with that
mindhardt
mindhardt15mo ago
Iirc you can configure SignalR to use ws only
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?