change socket implementation to the same as FLIRT

establish socket connection before rendering any components.