Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSocket server list

Tags:

html

websocket

I am looking to start a HTML5 WebSockets project and I was just wondering what you think the best back-end would be for that sort of thing? So far in my research I've stumbled across the following:

  • PHP Back-end (apparently a "Hack" and only compatible with Chrome and webkit nightlies)
  • Java Back-end (Seems well documented and cross-browser compatible)
  • Ruby Back-end (Don't know much about ruby, any opinions?)
  • JavaScript Library (Seems like it would be a nightmare, any opinions?)

Does anyone know of any other options or have an opinion on the above? My only requirements are ease of set-up and easy back end programmibility for bidirectional communication. I would essentially like to access a database through WebSockets and am looking for the easiest way to do this. Any feedback would be appreciated.

like image 877
SuperTron Avatar asked Nov 03 '11 18:11

SuperTron


People also ask

How many WebSockets are in a server?

The theoretical limit is 65k connections per IP address but the actual limit is often more like 20k, so we use multiple addresses to connect 20k to each (50 * 20k = 1 mil). I then run the web server as root by typing sudo -i followed by ulimit -n 1024000 and then node examples/WebSocket. js (in the uWebSockets.

What are WebSockets server?

A WebSocket server is nothing more than an application listening on any port of a TCP server that follows a specific protocol. The task of creating a custom server tends to scare people; however, it can be straightforward to implement a simple WebSocket server on your platform of choice.

Which companies are using WebSockets?

WebSockets has deep uses across many businesses and websites, such as GitHub, Easybase, Twitter, Facebook Messenger, and much more. Much of that popularity comes from how widely supported the technology is. Companies can trust that their applications will be supported by their users' devices.


2 Answers

Ease of setup would have to be a hosted solution which uses WebSockets, HTTP Streaming or HTTP Long-Polling (one of which I work for). They're the easiest option because you don't need to spend time installing your solution, configuring it and working out how to use in when developing and in production.

If you are looking for a self hosted solution then it really depends on what technology you'd prefer to use and what the community for that technology is like.

  • Node.js and socket.io has a big community following at the moment so it wouldn't be a bad choice.
  • PHP - I'm afraid that PHP isn't really build with long-held persistent connections in mind. So, although there are options it's probably best to either use a hosted service or steer clear.
  • Ruby - check out Faye (also has node.js option), Juggernaut or Cramp
  • Java: As you say, jwebsocket or WaterSpout Server

Hope this helps.

like image 174
leggetter Avatar answered Sep 19 '22 11:09

leggetter


I 'd recommend websocketd http://websocketd.com/ It 's a thin layer you can wrap around any program that reads from stdin and writes to stdout and transform it to a websocket server.

So you can write in any language you like. Afterwards just

$ websocketd --port=8080 my-program

and you have your server.

like image 39
Alexis Panagiotopoulos Avatar answered Sep 20 '22 11:09

Alexis Panagiotopoulos