Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am interested in building a custom Websocket server for college project. I have a good familiarity about HTTP 1.1 and knows quite well of how it works. I am asking this question assuming that Websocket clients (browsers) have their protocol specification since Websocket clients connects to Websocket server through URL begins with ws://. In addition, can Websocket server implemented without single threaded and event based environment feature of language?

Thank you.

share|improve this question
I guess I am just going to read tools.ietf.org/html/rfc6455 – TemporaryNickName May 14 at 8:18

1 Answer

up vote 1 down vote accepted

Websocket servers can be implemented without single-threaded and event based environments. More than that, even such environments (like nodejs) can run multiple threads.

However, I would approach this problem using nodejs. In specific, you can use something like Sails.js.

It lets you develop the sort of standard APIs you know how to develop from frameworks like Ruby on Rails, ASP.NET MVC, Python Django or whatever you're coming from only you're serving directly to WebSockets (can also serve to HTTP).

Also, socket.io is really nice and lets you do a lot of nifty stuff on the client-side and on the server-side. That site has plenty of nice examples.

share|improve this answer
1  
I am not going to use languages like Node.js to build this application interface. I am going to use a language designed by my professor and it does not have the websocket API yet =D – TemporaryNickName May 14 at 9:20
1  
"It's a language built by my professor "? – Benjamin Gruenbaum May 14 at 9:21
Thank you for suggesting me about the socket.io but this project is purely about building websocket server API so I do not really need to worry about it =P – TemporaryNickName May 14 at 9:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.