Relay and WebGL

Hi there,
is it possible to use Relay in WebGL?
Thank you

Relay works on UDP, right? I know that web browsers use TCP, but is there any workaround?

Hey Mirek,

Currently, Relay isn’t supported in WebGL. You are right in that Relay relies on the Unity Transport Protocol (UTP) which depends on UDP. Relay also relies on the Unity Authentication Service (UAS) which doesn’t currently support WebGL either. That being said since these services are in beta we’re seeing a lot of frequent improvements, so I would recommend keeping an eye out for any updates where that might change.

Is there any update if or when Unity Relay will support WebGL?

Presently, Relay still does not support WebAssembly/Javascript/WebGL/WebRTC/HTML5. However, I know there are several initiates in the works to look into broader platform support across a few of the dependencies. I recommend regularly checking in here and docs as we frequently release new features.