❔ 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
JakenVeina16mo ago
that screenshot of the controller is not really readable $code
MODiX
MODiX16mo 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
JakenVeina16mo ago
any relevant info in the network tab? like, what's the actual error there?
mindhardt
mindhardt16mo ago
Also: consider bit using websockets directly, take a look at SignalR
Stan
Stan16mo ago
yeah signalr takes care of stuff automagically. unless you specifically need websockets, go with that
mindhardt
mindhardt16mo ago
Iirc you can configure SignalR to use ws only
Accord
Accord16mo 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?