public synchronized boolean register(SocketIO socket) {
		String namespace = socket.getNamespace();
		if (sockets.containsKey(namespace))
			return false;
		sockets.put(namespace, socket);
		socket.setHeaders(headers);
		IOMessage connect = new IOMessage(IOMessage.TYPE_CONNECT,
				socket.getNamespace(), "");
		sendPlain(connect.toString());
		return true;
	}
Connects a socket to the IOConnection.

@param socket
           the socket to be connected
@return true, if successfully registered on this transport, otherwise
        false.
src/io/socket/IOConnection.java