[UPDATED] extracted socket component.