Change client on receiving message logic