Aaron A
Aaron A

Reputation: 11

Deploying Node.js, React.js, Express, and Socket.io Application on Heroku

enter image description hereSuccessfully deployed to Heroku and most of our application is working. However, our socket.io pieces (chat, view online users, game updates) are not functioning. We think this may be due to having an instance of socket initialized in the Board.js component and also in the App.js file but not sure if that is the issue or how to resolve. GitHub: https://github.com/sranney/checkers Heroku App: https://afternoon-thicket-28146.herokuapp.com/

Any help is greatly appreciated Photo1 1: Server Config for Http Server Photo 2: Shows Proxy Photo 3: Configuring socket in app component Photo 4: Importing socket into app

Upvotes: 0

Views: 768

Answers (1)

Brett Fuller
Brett Fuller

Reputation: 133

It looks like you are missing an io.connect statement in your server.js file. Check out this video (https://www.youtube.com/watch?v=y5tRiFJuNOs) along with the source code in the description.

Upvotes: 1

Related Questions