Make receiver socket injectable