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.
It depends on which language you use. In Java/Java EE: Jetty 7.0 supports it (very easy to use) V 7.5 supports RFC6455 - Jetty 9.1 supports javax. websocket / JSR 356)
One of the coolest new features of HTML5 is WebSockets, which let us talk to the server without using AJAX requests. In this tutorial, we'll review the process of running a WebSocket server in PHP, and then building a client to send and receive messages to it over the WebSocket protocol.
WebSocket, as an IETF standard, and with a W3C browser API, is fully supported by all modern browsers: Chrome 16 + (incl.
Apache server supports the module "mod_proxy_wstunnel" from the version 2.4. 10. This module requires the service of "mod_proxy". It provides support for the tunneling of web socket connections to a backend websockets server.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With