moose-en-a-gant Posted February 5, 2015 Share Posted February 5, 2015 First I don't know if this is the right forum to ask about Web Sockets, I came here because DOM says XML and AJAX says XML Anyway, Reading up on websockets. I came across this paragraph: WebSockets should not be used in a mixed content environment; that is, you shouldn't open a non-secure WebSocket connection from a page loaded using HTTPS or vice-versa. In fact, some browsers explicitly forbid this, including Firefox 8 and later. I don't know if I'm misreading it or misunderstanding it. I only have one SSL certificate that came with a GoDaddy server not self-signed. I'm not really trying to use it on this project. I looked up https and websockets and came across these : I think this commit 870f4f8 will fix your issue. But even if you are using the websockets transformer it's advised to only use http | https in the connection URL. Ah yes, using https in the connection string has sorted that out, thanks! If anyone has any experience or information, I'd greatly appreciate the help. Quote Link to comment https://forums.phpfreaks.com/topic/294415-is-an-https-a-must-when-using-websockets-for-a-chat-function/ Share on other sites More sharing options...
requinix Posted February 5, 2015 Share Posted February 5, 2015 It's the same deal with other things: - Don't use http from an https page - Use https if you need to keep the traffic secure Quote Link to comment https://forums.phpfreaks.com/topic/294415-is-an-https-a-must-when-using-websockets-for-a-chat-function/#findComment-1505014 Share on other sites More sharing options...
moose-en-a-gant Posted February 5, 2015 Author Share Posted February 5, 2015 I mean if the website did not have HTTPS at all... can I still use websockets? Well, you must be able to, I imagine Omegle uses web sockets and they don't have https. Quote Link to comment https://forums.phpfreaks.com/topic/294415-is-an-https-a-must-when-using-websockets-for-a-chat-function/#findComment-1505017 Share on other sites More sharing options...
requinix Posted February 5, 2015 Share Posted February 5, 2015 Yes, plain HTTP is fine. Quote Link to comment https://forums.phpfreaks.com/topic/294415-is-an-https-a-must-when-using-websockets-for-a-chat-function/#findComment-1505028 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.