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

Return underlying server after calling listen #26

Merged
merged 1 commit into from
Aug 29, 2016

Conversation

geelen
Copy link
Contributor

@geelen geelen commented Aug 29, 2016

This is so you can call:

const pushstate = require('pushstate-server');
const server = pushstate.start({
  port: 2999,
  directories: ['./build']
});
/* some time later */
server.close()

Useful for something I'm building. Otherwise the only way to quit the server is to send an INT (I think...)

@scottcorgan scottcorgan merged commit 16c845f into scottcorgan:master Aug 29, 2016
@scottcorgan
Copy link
Owner

Great! Released as 1.12.0

@geelen
Copy link
Contributor Author

geelen commented Aug 29, 2016

Now that's a quick turnaround! 😄

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.

None yet

2 participants