You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] When I install Photon lib with Solana Unity SDK there is a WebSocketSharp duplicity error #83
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
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
Desktop (please complete the following information):
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?
From your issue seems that websocket-sharp-latest.dll is the one causing the issue, try to remove it. NativeWebSocket is a wrapper library we built. Do they have a NativeWebSocket.dll file in Photon lib?
No unfortunately, dependency management is not straight forward in Unity.
Activity
GabrielePicco commentedon Apr 25, 2023
Hey @mixmob-julio , the NativeWebsocket lib is the cross platform wrapper, you should try to remove instead
websocket-sharp-latest.dllmixmob-julio commentedon Apr 25, 2023
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?
GabrielePicco commentedon Apr 25, 2023
From your issue seems that
websocket-sharp-latest.dllis the one causing the issue, try to remove it.NativeWebSocket is a wrapper library we built. Do they have a NativeWebSocket.dll file in Photon lib?
No unfortunately, dependency management is not straight forward in Unity.