made chat connection via socket io client