Browse files

Allow TNStropheClient or TNStropheConnection to add namespaces to Str…

…ophe

* Also fix a typo
  • Loading branch information...
1 parent df62d00 commit 03e33b87b109561dafcb726cadf541a4c425986a @benlangfeld committed Jan 16, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 TNStropheConnection.j
View
7 TNStropheConnection.j
@@ -89,6 +89,11 @@
#pragma mark -
#pragma mark Class methods
++ (void)addNamespaceWithName:(CPString)aName value:(CPString)aValue
+{
+ Strophe.addNamespace(aName, aValue);
+}
+
/*! instanciate a TNStropheConnection object
@param aService a url of a bosh service (MUST be complete url with http://)
@@ -113,7 +118,7 @@
if (self = [super init])
{
_registeredHandlers = [CPArray array];
- _registeredTimedHandlers = [CPArray array];;
+ _registeredTimedHandlers = [CPArray array];
_connected = NO;
_maxConnections = 10;
_connectionTimeout = 3600;

0 comments on commit 03e33b8

Please sign in to comment.