Permalink
Browse files

TNStropheConnection should know about its BOSH service

  • Loading branch information...
benlangfeld committed Jan 16, 2011
1 parent 03e33b8 commit a1173ccf838c04115ae45f60a03754e4f43fd294
Showing with 3 additions and 0 deletions.
  1. +3 −0 TNStropheConnection.j
View
@@ -124,6 +124,7 @@
_connectionTimeout = 3600;
_giveupTimeout = 8.0;
_currentStatus = Strophe.Status.DISCONNECTED;
+ _boshService = aService;
_connection = new Strophe.Connection(_boshService);
_delegate = aDelegate;
}
@@ -503,6 +504,7 @@
if (self)
{
_delegate = [aCoder decodeObjectForKey:@"_delegate"];
+ _boshService = [aCoder decodeObjectForKey:@"_boshService"];
_connection = [aCoder decodeObjectForKey:@"_connection"];
_registeredHandlers = [aCoder decodeObjectForKey:@"_registeredHandlers"];
_registeredTimedHandlers = [aCoder decodeObjectForKey:@"_registeredTimedHandlers"];
@@ -513,6 +515,7 @@
- (void)encodeWithCoder:(CPCoder)aCoder
{
+ [aCoder encodeObject:_boshService forKey:@"_boshService"];
[aCoder encodeObject:_connection forKey:@"_connection"];
[aCoder encodeObject:_registeredHandlers forKey:@"_registeredHandlers"];
[aCoder encodeObject:_registeredTimedHandlers forKey:@"_registeredTimedHandlers"];

0 comments on commit a1173cc

Please sign in to comment.