on method
A "change" event is fired on startup right after TalkJS loads, as well as every time the
amount of unread conversations changed. The handler
is invoked with an array of objects with
limited information about each conversation, see {@link UnreadConversation}.
@remarks Related methods: {@link Unreads.off}
Implementation
external void on(String eventType, Function handler);