Photon Chat not working in WebGL ?

Hi,

my project works correctly both in windows and in linux, but i can't seem to make Photon Chat (downloaded from the asset store, Photon Chat Free but i have the 100CCU subscription) work in webGL.

Previously, I had a message in the console that said that it was unable to connect to wss, so i temporarily setup CORS to allow all resources. Now the message does not appear anymore, but photon chat still is not working.

I tried explicitly to set

this.chatClient.TransportProtocol = ExitGames.Client.Photon.ConnectionProtocol.WebSocketSecure;

and the intellisense says "Note: No Websocket IPhotonSocket implementation is in this assembly" - I am unsure if this could be the issue?

do i need to install PUN rather than photon chat? I only require the chat as a feature? Any pointers are appreciated, thanks!

Comments

  • Hi @Untrusted,

    Thank you for choosing Photon!

    I assume you downloaded this.
    It could be that it has some issue yes as we don't update that asset often.

    What I recommend is that you download PUN 2 as it includes Photon Chat.
    Import only "Assets\Photon\PhotonChat" and "Assets\Photon\PhotonLibs".
    Or import all and ignore files not needed OR you can clean up unused or not needed files, delete folders "Assets\PhotonRealtime" and "Assets\PhotonUnityNetworking".
  • Thank you,

    i updated to the PUN2 package, changed my code to reflect the PUN2 example changes and now it works!
  • I see, thanks for the update.
    If changes were not that big maybe we could update Photon Chat easily then and avoid this in the future.
  • Hi again, sorry for upping this post but I was not sure if it warranted a new thread!

    It seems that the WebGL version sometimes disconnects the client (never happened with the linux or windows client). Any way to catch this, or is there maybe something specific that has to be done that I am missing? It seems like this happen after a long idle session, as long as people can type this doesn't happen.

    Thank you!
Sign In or Register to comment.