connected the client and server using Channel API