Add thread on the sending message.
Add thread on the fonction call on the onMessage