Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

It might be better to post this in stackoverflow as it's more of a development question. Before you post there, do a search. Many websocket questions have already been posted. But since you're apparently seeing this as a computer operation rather than a development issue, let me give you a quick briefing. Although Websockets use a standard form HTTP header request to initiate a connection, it's not HTTP. The full request includes a request to "upgrade" (parameter) to the websocket protocol, which is covered by an entirely new standard. So, that initial request should be handled by a gateway function that sends the request information to websocket software to complete the connection and handle any messages that follow. This of course also involves whatever application software is needed. So, you're not really looking for a "plugin" I'd say, but a websocket "server" we'll call it (it's a bit confusing since both ends can act the same way ... no more "master" / "slave" relationship). The following article has a link at the bottom to a websocket demo webpage. The HTML code can be downloaded. When you click to make the websocket connection, it goes to a gateway that passes the request to the websocket server. http://highlevellogic.blogspot.se/2011/09/websocket-server-demonstration_26.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.