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

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Do you have another example that simpler than the SuperWebSockets

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.