Separated socket from express logic