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

Just ping me if you rember anything been stuck in this problem from last two days