Make ResourceService call on_event when publish

It doesn't make sense in BaseService
Fix the chat demo.

Fix an argument typo, msg_type -> message_type.
Doesn't wait for a response in direct message.