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

Event for client connected #130

Open
lonix1 opened this issue Jul 14, 2018 · 3 comments
Open

Event for client connected #130

lonix1 opened this issue Jul 14, 2018 · 3 comments

Comments

@lonix1
Copy link

lonix1 commented Jul 14, 2018

Is there an event / some way to detect when a client connects (browser loads a page that has the script on it)?

I'm using the callback in the server.listen() function that tells me that the server is up and running. Are there more events?

@mklabs
Copy link
Owner

mklabs commented Jul 14, 2018

Hi @lonix1 I can't really answer right now, I need to dig in the codebase. That being said, there's livereload-js you can look at if your need is on the client-side.

@mklabs
Copy link
Owner

mklabs commented Jul 14, 2018

@lonix1
Copy link
Author

lonix1 commented Jul 15, 2018

@mklabs Thanks, what I'm trying to do is to print "Client connected" or something like that when a client connects. I looked at the code but don't think there is something like that currently (but I'm not sure).

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

No branches or pull requests

2 participants