docs: Update feature tutorial for server_events_dispatch.js.

This commit is contained in:
Cory Lynch
2017-05-31 16:04:19 -04:00
committed by Tim Abbott
parent 5d7828096e
commit 76a497650b
2 changed files with 7 additions and 3 deletions

View File

@@ -59,6 +59,10 @@ function get_events_success(events) {
events_stored_while_loading = [];
}
// Most events are dispatched via the code server_events_dispatch,
// called in the default case. The goal of this split is to avoid
// contributors needing to read or understand the complex and
// rarely modified logic for non-normal events.
var dispatch_event = function dispatch_event(event) {
switch (event.type) {
case 'message':