Added onSendMessage event

#484
Added onSendMessage for broadcast

#484