WebSocket Server List

I'm looking to start an HTML5 WebSockets project, and I'm just wondering what do you think is the best result for this kind of thing? So far in my research I have come across the following:

  • PHP Back-end (apparently "Hack" and is compatible only with nightly Chrome and webkit models)
  • Java Back-end (seems well-documented and cross-browser compatible)
  • Ruby Back-end (don't know a lot about ruby, any opinions?)
  • JavaScript library (it would seem like a nightmare, any opinions?)

Does anyone know of any other options or have an opinion on this? My requirements are ease of setup and easy rear-programmability for bidirectional communications. I would like to access the database through WebSockets, and I'm looking for the easiest way to do this. Any feedback would be appreciated.

+6
source share
2 answers

Ease of configuration should be a hosted solution that uses WebSockets, streaming HTTP or HTTP Long-Polling (one of which I work for). This is the easiest option, because you do not need to spend time installing your solution, setting it up and developing how to use it in development and production.

If you are looking for a stand-alone solution , then it really depends on the technology that you prefer to use, and how the community is similar for this technology.

  • Node.js and socket.io has a large community, the following at the moment, so this would not be a bad choice.
  • PHP I am afraid that PHP is not really built with long standing connections. Thus, while there are options, it is probably best to use either a hosted service or to avoid it.
  • Ruby - check Faye (there is also a node.js option), Juggernaut or Cramp
  • Java: As you say, jwebsocket or WaterSpout Server

Hope this helps.

+5
source

I recommend websocketd http://websocketd.com/ This is a thin layer that you can wrap around any program that reads from stdin and writes to stdout and converts it to a web server.

So, you can write in any language that you like. Subsequently just

$ websocketd --port=8080 my-program 

and you have your server.

+3
source

Source: https://habr.com/ru/post/900724/


All Articles