How build for WebGL?

Options
Sounding perhaps enough foolish, but when I build for WebGL (Unity 2019 latest) when I choose "development build" then after uploading to Heroku, it works fine, while if I build for production, I get error for ws, web sockets seem not working. Could you please let me know how to have ws working in prod build?

Comments

  • jeanfabre
    Options
    Hi,

    does your prod build works before you upload to heroku?, if that's the case, then is it possible that the heroku environment doesn't have the right port enabled or is not configurated to allow for such connection to pass through?

    Bye,

    Jean