示例#1
0
        public static async Task ConnectAsync(Uri peer, Action <WebSocketConnection> onOpen, Action <string> log)
        {
            var task = WebSocketClient.Connect(peer, onOpen, log);

            WebSocketManager.webSocketConnection = await task;
        }