allartprotocol / unity-solana-wallet

The First Open-Source Unity-Solana Wallet with NFT support
282 stars 128 forks source link

Insecure WebSocket connection Fix #36

Closed mfahadasghar closed 1 year ago

mfahadasghar commented 1 year ago

If you upload the game on the web hosting and try to play you will get to see a error of insecure WebSocket connection.

DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

You can solve it by replacing ws with wss in the WalletBaseComponent.cs.

Example:

Before:- public static string webSocketMainNetAdress = "ws://api.mainnet-beta.solana.com";

After:- public static string webSocketMainNetAdress = "wss://api.mainnet-beta.solana.com";

vuckovic95 commented 1 year ago

It will be fixed in the next version :D