Closed mfahadasghar closed 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.
ws
wss
Before:- public static string webSocketMainNetAdress = "ws://api.mainnet-beta.solana.com";
public static string webSocketMainNetAdress = "ws://api.mainnet-beta.solana.com";
After:- public static string webSocketMainNetAdress = "wss://api.mainnet-beta.solana.com";
public static string webSocketMainNetAdress = "wss://api.mainnet-beta.solana.com";
It will be fixed in the next version :D
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
withwss
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";