connection is made between server and client, breaks when client disconnects