passed socket object through component props to the answer input to submit answers