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.
 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.