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
Is there anyone successfully deployed WebSocket using uWebSockets.js library in Heroku?
The code is able to bind to the Heroku PORT (in below log 43787), but it crashed 1 minuter later, because I don't have HTTP listener (Web process) -- which is intentional as I replaced it with uWS listen method
It works again if i enable the HTTP listener (read: "express" listen method), and disable the uWS listen
2022-03-18T18:24:00.841575+00:00 heroku[web.1]: State changed from crashed to starting
2022-03-18T18:24:22.824886+00:00 heroku[web.1]: Starting process with command `node server.js`
2022-03-18T18:24:24.692296+00:00 app[web.1]: > Listening WS on 43787 successfully
2022-03-18T18:25:23.288342+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-03-18T18:25:23.320724+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-03-18T18:25:23.483630+00:00 heroku[web.1]: Process exited with status 137
2022-03-18T18:25:23.593585+00:00 heroku[web.1]: State changed from starting to crashed
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is there anyone successfully deployed WebSocket using uWebSockets.js library in Heroku?
The code is able to bind to the Heroku PORT (in below log 43787), but it crashed 1 minuter later, because I don't have HTTP listener (Web process) -- which is intentional as I replaced it with uWS
listen
methodBeta Was this translation helpful? Give feedback.
All reactions