testing for tcp connection and soket io