Added socket server wait to start option #130
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows the socket server creation to wait. This is useful for when there are are other events that happen inbetween requiring reload and start the HTTP server in an express app.
As well as ideally allowing the app initialization and socket server initialization to happen in two different spots, like requested in #67.
Note: I was quick to think we didn't need this when solving #56 with #104 but some people will need their socket server creation to wait. This will allow for that.