Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

Connecting to nodejs on http from https site #218

Open ExpectZero opened 11 years ago

ExpectZero commented 11 years ago

Hi, i'm trying to establish a connection from my drupal site that runs over https to my nowjs server that runs over usual http.

The now.js script is added sucessfully to my site: "http://127.0.0.1:8080/nowjs/now.js"

but when the now.js script tries to load the socket.io script, it tries to load the script from "https://127.0.0.1:8080/socket.io/socket.io.js"

The script can not be loaded because the nodejs server doesn't support https. Is there a workaround for this? Maybe a bug? How can i solve the problem?

Thank you!

ExpectZero commented 11 years ago

When i try to set the address "http://127.0.0.1" to the options array of the now.initialize function the script tries to load from "https://http//127.0.0.1:8080/socket.io/socket.io.js" and its still not working...