pkyeck/socket.IO-objc — pull request #198 by jbaez (2014-07-08 13:46:26+00:00)
Title: Fix namespace to use the same socket connection with multiple namespaces.

The current namespace implementation was not ideal, it would created a new socket connection for each namespace.
In this PR the namespace was removed from SocketIO class.
To share the same socket connection with multiple namespaces the SocketIONamespace class can be used instead.
```
SocketIONamespace *socketNS = [SocketIONamespace namespaceWithEndpoint:@"/endpoint" delegate:self];
```

Basically SocketIONamespace creates a SocketIO singleton which is reused by all SocketIONamespace instances. SocketIONamespace instances register themselves as a delegate of SocketIO.
SocketIO will send events/messages only to the matching namespace SocketIONamespace instance.

pd: SocketIO has an array of weak pointers for the namespaces delegates implemented with a NSPointerArray, which is available on iOS 6 and later.