Jump to content

Is an HTTPS a must when using websockets for a chat function?


moose-en-a-gant

Recommended Posts

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.
 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.