Skip to content

Expose .onclose to the user connection. - #5

Open
kybernetikos wants to merge 1 commit into
masterfrom
T89
Open

Expose .onclose to the user connection.#5
kybernetikos wants to merge 1 commit into
masterfrom
T89

Conversation

@kybernetikos

Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

Ref T89

Comment thread src/msgpack-connection.js
this.onMessage = null
this.onClose = null
this.onError = null
this.onOpen = noop

Copy link
Copy Markdown

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

Comment thread src/msgpack-connection.js
this.onError = noop
}

connect(onMessage, onEnd, onOpen, connectionOptions) {

Copy link
Copy Markdown

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

sammyt commented Mar 21, 2017

Copy link
Copy Markdown

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