3

I'm kind of new in the websocket, I learned the client-side code (in JavaScript) which is simple and easy,

but when I search the websocket server, the code is complicated (especially in c#), and now I need a websocket server code (in c# or vb.net) that return some message to the client side (can be a string like "hello client") as an example and if possible with some explanation in the code, and furthermore I also need some code for the server to send file (like .jpg) to the client side (if it's possible)

any idea? or if you have a good reference, I'm open to it, Thanks

Eldon Lesley
  • 915
  • 6
  • 19
  • 38

1 Answers1

1

In one of my projects, I'm using the SuperWebSocket as .NET WebSocket server. There are also some examples included (I think also a simple echo example, which returns the received string from a client).

I havn't sent an image yet, so I can't provide code for this problem.

If you also need a .NET WebSocket client, you can use WebSocket4Net

Robar
  • 1,929
  • 2
  • 30
  • 61