lukeredpath/libPusher — Issue #9: Can't Connect Due to NULL theReadStream
Author: devinfoley
Created: 2011-11-08 06:19:28+00:00
State: open

Hi,

First of all, thanks for this library! Unfortunately, I'm having trouble connecting.

When I execute the following code...

// Init pusher
NSLog(@"%@", @"Connecting to pusher...");
pusher = [PTPusher pusherWithKey:PUSHER_API_KEY delegate:self encrypted:YES];
pusher.reconnectAutomatically = YES;
[pusher connect];

I get the following error...

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: theReadStream != NULL'
*** Call stack at first throw:
(
0 CoreFoundation 0x0196b5a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01abf313 objc_exception_throw + 44
2 CoreFoundation 0x01923ef8 +[NSException raise:format:arguments:] + 136
3 Foundation 0x0165a3bb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
4 [my app] 0x0005e502 -[AsyncSocket doCFReadStreamCallback:forStream:] + 242
5 [my app] 0x00057cf9 MyCFReadStreamCallback + 169

I've double checked everything and tried a few different parametersAny ideas?

Thanks!
Devin