rewrite messageRecevied
client.send(id) send an incremental id to server, server will response this id back to client