Implements socket request