Abstracted socket handler out of the renderer