This is a demo to test running a small socket server in a dotnet core console app and connecting to it via websockets from javascript.
Based on https://codepen.io/matt-west/details/tHlBb
- Simple html page with vanilla js
- Uses the
WebSocket
api (docs)
- Make sure Visual studio is running as an administrator
- Run console app
- Run
npm i
- Run
npm run serve
- Type your message and click "Send" and you should see your message echoed back, both on the console and the site