pubnub/pubnub-api — Issue #71: When using Socket.IO SSL still requesting http URL
Author: sidonath
Created: 2012-02-24 17:32:09+00:00
State: open

Hi!

I'm trying to set up JS client against Socket.IO API on an SSL-only webapp. I've followed the instructions in [README](https://github.com/pubnub/pubnub-api/tree/master/socket.io):

1. included ``
2. created pubnubSetup object which includes pub/sub keys and also `ssl: true`
3. connected the socket with `socket = io.connect('http://pubsub.pubnub.com/', pubnubSetup);`

I've the inspected requests with Firebug and noticed that almost all requests correctly go to https://-url. However, there are few **time** requests that go to `http://pubsub.pubnub.com/time/0`. This generates dialog boxes in IE7 that asks users if they want to see insecure content. If they reject, the push notifications don't work.

The workaround would be to include

, but that's a duplication I would like to avoid. I'm also not very confident that it won't create other problems.