2way socket working