-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One-way message behavior between stateful and stateless transports is now consistent: listeners are never passed a callback (it was odd to have the type of transport influence this, breaking separation of concerns even). As a side-effect, this change also improves default behavior when no callback is passed to emitters (even for non-one-way messages). Errors are now emitted on the corresponding message emitter rather than directly thrown (where they couldn't be caught). Also rename "unsupported message" to more explicit "unhandled message" when a message is sent to a protocol which hasn't implemented a handler for it.
- Loading branch information
Showing
2 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters