Adding socket support (basic connect and disconnect methods).