Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What popular webservers have support for HTML5 WebSocket?

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.

like image 906
Jonas Avatar asked May 27 '10 21:05

Jonas


People also ask

Does WebSocket depends on support for HTML5?

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)

Is WebSocket a feature of HTML5?

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.

Are WebSockets supported by most browsers?

WebSocket, as an IETF standard, and with a W3C browser API, is fully supported by all modern browsers: Chrome 16 + (incl.

Does Apache support WebSockets?

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.


2 Answers

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.

like image 172
natevw Avatar answered Sep 19 '22 19:09

natevw


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.

like image 29
raffel Avatar answered Sep 20 '22 19:09

raffel