简体   繁体   中英

How to work with WebSocket[TCP connection] in asp.net web form using c#

I hope this is not a bad question rising but I want to learn this concept with good example then only I can start my Realtime work.

I'm new to this WebSocket[TCP connection] concept and I have read some ( this and this ) content regarding this concept and I got bit basic knowledge on this but my query is, I'm unable to find the sample example tutorial on this concept(in asp.net web form using c#) that is how to create websocket(server side) and how to receive that data(from client side) basic communication between server side and client side.

Please suggest me how to work with websocket and give me basic example.

I'm very beginner in programming language.

Use SignalR

SignalR is framework to communicate in real-time without polling (keep asking if there is any data to send) between server and client (browsers). Web socket is the main protocol to use in SignalR when web socket is available. If web socket is not available then SignalR will use different way to push data specially from server to the client.

https://www.c-sharpcorner.com/article/signalr-chat-app-with-asp-net-webform-and-bootstrap/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM