❔ 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
JakenVeina13mo ago
that screenshot of the controller is not really readable $code
MODiX
MODiX13mo 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
JakenVeina13mo ago
any relevant info in the network tab? like, what's the actual error there?
mindhardt
mindhardt13mo ago
Also: consider bit using websockets directly, take a look at SignalR
Stan
Stan13mo ago
yeah signalr takes care of stuff automagically. unless you specifically need websockets, go with that
mindhardt
mindhardt13mo ago
Iirc you can configure SignalR to use ws only
Accord
Accord13mo 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.
Want results from more Discord servers?
Add your server