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

create events #15

Closed
ericmdantas opened this issue Mar 16, 2016 · 1 comment
Closed

create events #15

ericmdantas opened this issue Mar 16, 2016 · 1 comment

Comments

@ericmdantas
Copy link
Owner

It should emit events the user could hook to and do whatever they wanted, things like:

let aliv = new Server();

aliv.on('start', () => {})
aliv.on('change', () => {})
aliv.on('reload', () => {})
aliv.on('proxy', () => {})
aliv.on('close', () => {})
aliv.on('error', () => {})
@ericmdantas ericmdantas mentioned this issue Mar 16, 2016
3 tasks
@ericmdantas
Copy link
Owner Author

Following events implemented:

let aliv = new Server();

aliv.on('client-connected', () => {})
aliv.on('client-disconnected', () => {})
aliv.on('browser-open', () => {})
aliv.on('reload', () => {})
aliv.on('proxy', (info) => {info.req})
aliv.on('file-changed', (info) => {info.path})

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

1 participant