Check for socket type or stream_get_meta_data