New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket and SSL on many ports #1
Comments
On 27/06/2013 17:01, olleharstedt wrote:
I’m going to have a look tomorrow. Vincent |
Oh, I thought it was MY websocket library. Sorry :) |
Ah, no, not ocaml-websocket, but lwt-websocket. :) Do you know how to use websockets with SSL? Just switching to "wss://..." doesn't seem enough. This is the setup code I use. Should I use another socket type to get it to work with SSL?
Apache2 takes care of the SSL, so I'm at bit of a lost, here. |
On 28/06/2013 15:34, olleharstedt wrote:
Ok, you're talking about my fork of this library then. I wrote another Good luck, Vincent |
Hello
I'm using your library for my card playing webpage (thanks for that)! Now I try to switch to SSL, but the websocket will no longer connect (I've also switched from "ws://..." to "wss://..."). This is the error I receive:
Lwt_stream.Empty[Thu Jun 27 12:44:44 2013] [OcamlNet] /cgi-bin/drakskatten_ajax: Netchannels.Closed_channel (Status 500), referer: https://127.0.1.2/cgi-bin/drakskatten
I'm using the cgi app as a small websocket server, where each instance listens on a unique port, starting from 8080.
Do you know what's going on? Is it apache? Or should I use the Lwt_ssl socket type instead of the regular?
Loading webpages from the cgi works properly, even with SSL. Websocket works without SSL, but not with.
Grateful for your help
Olle
The text was updated successfully, but these errors were encountered: