Issues With Photon and WebGL Unity

Hi,
I’m new here so sorry if this is the wrong place for this.

I have a built a custom photon server to run an MMO style game to work with WebGL. The server and project work fine when you play it in the unity editor, but when we compile it to WebGL and attempt to run it we get this error:

blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:1 Uncaught Assertion failed: 0 && “The target platform does not support Sockets”, at: C:\Program Files\Unity 5.4.0b20\Editor\Data\il2cpp\libil2cpp\os\Generic\SocketImpl.cpp,50,SocketImpl at Error
at jsStackTrace (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:1:22874)
at stackTrace (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:1:23057)
at ___assert_fail (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:1:261781)
at YKn (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:22:577281)
at JIn (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:22:552497)
at XAn (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:22:417981)
at wuh (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:14:1038026)
at XAh (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:11:33162)
at Array.WAh (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:11:32946)
at Array._kk (blob:http%3A//localhost/6f801906-3dfb-4efd-a47b-7f09948339c8:9:818273)

What does this mean? Can it be fixed?
I am fairly advanced with programming and networking so please feel free to be technical.
Thanks for any help.

Well I had some problems with communication between client and server in WebGL. Seems like some photon features are not compitable with WebGL platform.

You should just read error message, there is answer :slight_smile:

@Orrin_Naylor , which package are you using? PUN supports WebSockets only for WebGL.

I figured it out. I am using photon server v3.4. Which doesn’t support WebSockets :(. Photon 4.0 does so I need to upgrade to that.