public async Task <bool> ValidateAsync() { #if UNITY_EDITOR || UNITY_WEBGL return(await webSocketProxy.Open(context)); #else return(await Task.FromResult(true)); #endif }
public async Task <bool> ValidateAsync() { #if UNITY_EDITOR || UNITY_WEBGL if (!IsWebSocketOpened) { await webSocketProxy.Open(context); IsWebSocketOpened = true; } #endif return(await Task.FromResult(true)); }