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

I resolved the problem by the same way but I set the “Additional Non-Assets Directories to Copy” value from the Editor menu.