Пример #1
0
        private static async Task TestCore(bool directConnection)
        {
            using var client = new SocketIOClient("http://localhost:10000/", _httpClient);

            await client.ConnectAsync(new ConnectionOptions()
            {
                NoLongPollingConnection = directConnection
            });

            Assert.True(client.IsConnected);

            await client.CloseAsync();

            Assert.False(client.IsConnected);
        }