Add getType to Socket