Repository navigation
[Bug] When I install Photon lib with Solana Unity SDK there is a WebSocketSharp duplicity error #84
Unanswered
mixmob-julio
asked this question in
Q&A
Replies: 5 comments
|
Hey @mixmob-julio , the NativeWebsocket lib is the cross platform wrapper, you should try to remove instead |
0 replies
|
The duplicity happens with the NativeWebSocket.dll file which can be present/distributed in other packages/plugins like Photon. That's why I need to remove it. Should not the Solana SDK now be able to get the other dll reference and use it? |
0 replies
|
From your issue seems that No unfortunately, dependency management is not straight forward in Unity. |
0 replies
|
Hey @mixmob-julio , did deleting |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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...
... 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
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

Desktop (please complete the following information):
All reactions