fpotter/juggernaut-cocoa — Issue #1: Does it work for https?
Author: morgler
Created: 2011-12-06 17:29:05+00:00
State: open

I just tried juggernaut-cocoa, but couldn't get it to work with out backend. What I do is:

```
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(didReceiveMessage:)
name:JuggernautDidReceiveMessageNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(juggernautDidConnectNotification) name:JuggernautDidConnectNotification object:nil];

JuggernautClient *client = [[JuggernautClient alloc] initWithHost:@"https://livesein.de" port:8080];

[client subscribe:juggernautChannel];
```

I receive neither of the two notifications :(. Our backend is Rails with a NodeJS for running Juggernaut 2 via an https secure connection. Does your library support secure connections? In Javascript I would just do:

```
var jug = new Juggernaut({
secure: true,
host: "livesein.de",
port: 8080
});

jug.subscribe(channel, onReceivePushFromServer);
```

How can I make that work in Objective-C with the help of juggernaut-cocoa?