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

Is onOpen possible? #63

Closed
enygma opened this issue Oct 22, 2017 · 2 comments
Closed

Is onOpen possible? #63

enygma opened this issue Oct 22, 2017 · 2 comments
Labels

Comments

@enygma
Copy link

enygma commented Oct 22, 2017

I'm trying to look through the source to see if there's a way to have an on handler for "open" but all I'm seeing are close and message. Is there a way I'm missing to be able to fire an event on the opening of the connection and before the first message comes in?

@cboden
Copy link
Member

cboden commented Oct 22, 2017

When the WebSocket class is instantiated by the connector, resolving the promise, and returned inside your then function, the connection is considered open.

@cboden
Copy link
Member

cboden commented Oct 30, 2017

Closing as it looks like you got it figured out 😀 👍

@cboden cboden closed this as completed Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants