If Chrome works normally on PC using wired connection or a stable WiFi, and Safari on iPhone has issues, please change a network used on mobile device (from 3G to 4G/LTE, from LTE to WiFi). If this is not possible, you have to use TCP transport to reduce packet loss:
room.publish({...