Forum

Does the 9.6 version support websocket ?

Damien
19 August 2014, 04:28
I find this topic in the forum:

WebSocket support
Anonym
19 September 2013, 18:38
Websocket support would be great!
Currently I have my Node.js applications run under other webservers, because hiawatha does not support the websocket protocol.
Hugo Leisink
22 September 2013, 22:17
I'll take a look at it for the 9.4 release, but no promises yet

I want to know the websocket is supported now ?

thanks.
- Damien

Hiawatha version:
Operating System:
Hugo Leisink
19 August 2014, 09:26
9.6 and the soon to be released 9.7 does not contain websocket support. I've been looking at it some time ago. I have some questions I need to be answered before I can start implementing it, but I can't find the answers on the internet. I hope you can answer them for me.

My biggest question is: what must a webserver do with an incoming websocket request? I know it's an HTTP upgrade request, but how to deal with it? Does the URL point to a CGI which the server must execute? Many websites talk about connecting to a TCP port, but I can't find which information in the HTTP request tells me where to connect to. Many websites talk about a Sec-WebSocket-Protocol header which the server must respond to, but I don't know how a webserver can anwer that for the websocket server application. Nginx implements websockets as a proxy. Is that the way to deal with websocket request? Must Hiawatha forward the HTTP websocket request to a server-side websocket application and purely function as a TCP proxy from that moment? I hope you can give me some answers to my questions.
J. Lambrecht
22 August 2014, 11:42
I'm not sure but does this translate well it's purpose ?

http://tools.ietf.org/html/rfc6455#section-1.7

Hugo Leisink
25 August 2014, 10:30
No, it does not anwer the question I have. I'm still not sure about what a webservers should do with a websocket upgrade request. My guess is to forward it directly to a websocket application, but I'd like to be sure before I start making code changes.
J. Lambrecht
29 August 2014, 16:58
Hmm. I understand somewhat better now i've read this as a cross reference to the websocket protocol handling.

http://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.0.0/com.ibm.dp.xb.doc/var-service-http-websocket-upgrade.html

As far as i understand both use cases can apply.

This topic has been closed.