Dispatch dispatches an update to all subscribers. It trusts u to be well-formed. A caller that builds u from untrusted input (e.g. a publisher request) and dispatches it directly instead of through Hub.Publish MUST call u.Validate first and reject the update on error, otherwise a CR, LF, or NUL in
(ctx context.Context, u *Update)
| 21 | // subscription events are trusted and skip Validate (they use reserved |
| 22 | // topics that Validate rejects by design). |
| 23 | Dispatch(ctx context.Context, u *Update) error |
| 24 | |
| 25 | // AddSubscriber adds a new subscriber to the transport. |
| 26 | AddSubscriber(ctx context.Context, s *LocalSubscriber) error |
no outgoing calls