implemented api connection with chatMessageViewController (only receiving message)