added namespace management to socketIO client