Multiple endpoints, working socket connection