29

I would like to experiment with HTML5 WebSockets, and I am looking for a mature webserver with support for websockets. Is there a list of webservers that support websockets per default? What popular webservers has support for websockets out of the box? The server programming language doesn't matter, I know Java, PHP, Erlang, Python and more... I just want to do some small experiments.

I have looked at a few that doesn't support websockets (yet), i.e. Nginx, Apache and Mochiweb.

Jonas
  • 121,568
  • 97
  • 310
  • 388
  • For those who're using Django, Channels is the answer. According to the community, Channels will be officially released in Django 1.10 –  Apr 21 '17 at 05:42

6 Answers6

10

Nowadays node.js, especially in conjuction with the Socket.IO library, is a popular platform for WebSocket experiments. It's not a traditional "webserver" like Apache/nginx but it certainly offers a "server programming language" that's super easy to set up for small experiments and is possible to deploy in production too.

natevw
  • 16,807
  • 8
  • 66
  • 90
9

You can find a mod_websocket module for lighttpd here. I've tested it with lighttpd 1.4.26.

When building mod_websocket, be sure to specify the correct websocket protocol version you want to use (version -75 or -76). Starting with WebKit nightly build r59903 and Chrome 6.0.414.0 (r47952) only protocol version -76 is supported.

raffel
  • 1,385
  • 10
  • 8
6

http://en.wikipedia.org/wiki/Web_Sockets#Server_Implementations

I tested netty. It seems to work, but I need to play with it a little more to be sure if it's good solution.

Maciek Sawicki
  • 6,717
  • 9
  • 34
  • 48
  • The link you provided doesn't contain the section but the German page does: http://de.wikipedia.org/wiki/WebSockets#Server-Implementierungen – MKroehnert Oct 12 '10 at 21:28
  • 1
    thanks for this comment. I hate overzealous admins on wikipedia. English version can be found in edit history: http://en.wikipedia.org/w/index.php?title=WebSockets&oldid=367302004 – Maciek Sawicki Oct 13 '10 at 21:47
5

Jetty (a Java servletcontainer) supports HTML5 websockets since version 7.0.1. You can find several information and blogs about it here.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
4

I just tried out tornado web server and I'm really satisfied. You will easily get up and running in no time.

bennedich
  • 12,150
  • 6
  • 33
  • 41
2

Apache Tomcat 7 and later versions support WebSocket.

Derek Mahar
  • 27,608
  • 43
  • 124
  • 174