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

Give access to the server #26

Open
lastmjs opened this issue Mar 8, 2017 · 1 comment
Open

Give access to the server #26

lastmjs opened this issue Mar 8, 2017 · 1 comment

Comments

@lastmjs
Copy link
Member

lastmjs commented Mar 8, 2017

The use case I'm having trouble with is setting up socket.io. I do not have access to the server before it starts listening, and so I can't hook up socket.io correctly. What if we could pass in a function to be applied with the server before the serve starts listening in express-app?

@lastmjs
Copy link
Member Author

lastmjs commented Mar 8, 2017

I tested things out, and it looks like you can setup socket io after the server has started listening. So, just add the server as a parameter to the express-config callback, that should fix the issue.

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