Added state object to Message api for sending and receiving some object
(any).