You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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
?The text was updated successfully, but these errors were encountered: