Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing a "notification" concept #48

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

kwankin-yau
Copy link

Introducing a "notification" concept. Request/response messages both have an id attribute, while notification messages are messages that do not contain an id attribute and can be used for server-initiated notification messages. Changes include:

  • WebSocketAsPromised adds an onUnpackedNotif event handler.

  • The original _tryHandleResponse method is modified to return a boolean value to reflect whether the given data parameter contains an id attribute.

  • Addition of a browserify script.

  • Minor usage instructions added to README.md.

…have an id attribute, while notification messages are messages that do not contain an id attribute and can be used for server-initiated notification messages. Changes include:

WebSocketAsPromised adds an onUnpackedNotif event handler.
The original _tryHandleResponse method is modified to return a boolean value to reflect whether the given data parameter contains an id attribute.
Addition of a browserify script.
Minor usage instructions added to README.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant