I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them.
Is there a possibility to install a plugin that brings me the support for that?
greetings
I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them.
Is there a possibility to install a plugin that brings me the support for that?
greetings
You can use HTML5 websockets with the latest stable Nginx installed, to easily install it use the repositories:
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
Remember, you have to remove your old nginx
, nginx-common
and nginx-full
packages before installing the new version.
I've already tested proxying websockets ( using socket.io ) on Nginx 1.4.1 and it works fine.
I do not think there are any nginx modules that add support for websockets. However the nginx roadmap indicates that version 1.3 will have support for them.
From what I understand there are a number of pieces involved beyond just the web server (nginx), but "support for proxying of WebSocket connections" in nginx was released in v1.4.0.
More Info:
It is not that difficult. You can find more information here. Posted that couple days ago.