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

Expose .onclose to the user connection. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kybernetikos
Copy link
Collaborator

Some esdoc improvements
Logging that doesn't enforce string concatenation.

Resolves T89

Some esdoc improvements
Logging that doesn't enforce string concatenation.
@kybernetikos
Copy link
Collaborator Author

Ref T89

this.onMessage = null
this.onClose = null
this.onError = null
this.onOpen = noop
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if only WebSocket had a big o

this.onEnd = noop
this.onMessage = noop
this.onClose = noop
this.onError = noop
}

connect(onMessage, onEnd, onOpen, connectionOptions) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a part of me that really wants onOpen, onEnd... but I can think of no justification, at all.

@sammyt
Copy link
Collaborator

sammyt commented Mar 21, 2017

Looks good to me 👍

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.

2 participants