PhotonWebSocket linking issue when building WebGL target

Options
Hi all,

We updated Photon engine to the latest 2.21. Since then, we are not able to build our webgl game anymore.
Here is the error that we are seeing:
Assets\Photon\PhotonLibs\WebSocket\WebSocket.cs(5,7): error CS0246: The type or namespace name 'WebSocketSharp' could not be found (are you missing a using directive or an assembly reference

Any idea of how we can fix this?

Ben

Comments

  • lucas_tac
    Options
    I'm with the exact same issue
  • Broux
    Options
    lucas_tac wrote: »
    I'm with the exact same issue

    Hi Lucas, we were able to fix this in the end by doing the following:
    -> In Unity, in your project hierarchy. Go to Assets > Photon > PhotonLibs > WebSocket
    -> There you will find a dll called websocket-sharp.dll, select it.
    -> In the inspector, under the "select platforms for plugin" menu, click the check-box for "WebGL".

    That should allow you to build for webGL.

    Note to the photon team: It would be awesome if this could be fixed for the next release.
  • OldPilgrim
    Options
    @Broux you are the real MVP
  • lucas_tac
    Options
    Broux wrote: »
    Hi Lucas, we were able to fix this in the end by doing the following:
    -> In Unity, in your project hierarchy. Go to Assets > Photon > PhotonLibs > WebSocket
    -> There you will find a dll called websocket-sharp.dll, select it.
    -> In the inspector, under the "select platforms for plugin" menu, click the check-box for "WebGL".

    That should allow you to build for webGL.

    Thanks, that solved for me!