Skip to content

[Bug] When I install Photon lib with Solana Unity SDK there is a WebSocketSharp duplicity error #83

Description

@mixmob-julio

Describe the bug
When I install Photon lib with Solana Unity SDK there is a WebSocketSharp duplicity error being triggered:

Assets\SolanaSDK\Runtime\codebase\SolanaMobileWalletAdapter.cs(92,28): error CS0121: The call is ambiguous between the following methods or properties: 'WebSocketSharp.Ext.IsNullOrEmpty(string)' and 'WebSocketSharp.Ext.IsNullOrEmpty(string)'

Happens that Photon has the same library being distributed with.
If I try to remove the duplicate dll from Solana folder...
image
... the Solana Unity SDK don't work, and shows follow error:
Assets\SolanaSDK\Runtime\codebase\SolanaMobileStack\MobileWalletAdapterWebSocket.cs(2,7): error CS0246: The type or namespace name 'NativeWebSocket' could not be found (are you missing a using directive or an assembly reference?)

To Reproduce

  • Install the Solana Unity SDK from the zip file downloaded from github.
  • Install Photon Quantum plugin from zip file downloaded from Photom website.
  • The lib duplicity error will be triggered.
  • Remove the NativeWebSocket.dll from Solana folder.
  • Now the "Type namespáce error" is triggered.

Expected behavior
I expect to remove the NativeWebSocket lib distributed with Solana SDK and use any generic NativeWebSocket lib already present in the project.

Screenshots
image

Desktop (please complete the following information):

  • Unity 2-21.3.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions