When playing in the editor WebSocket connection successful but failed when playing in packaged, why?

For anyone else looking, VE1977’s comment below solves it. The exact steps to fix it is:

  1. Copy [Engine directory]/Engine/Content/Certificates/ThirdParty/cacert.pem to [Project directory]/Content/Certificates/cacert.pem
  2. In your project settings, under Packaging, add an array item to “Additional Non-Asset Directories to Package”, with the value Certifications

That’s it, no need to do anything in C++. You may need to copy this again when you update engine version.

1 Like