Refactor submission parsing
Refactor message parsing
Expose the focus update event
Expose the typing update event