Added getSocketType method