mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
18 lines
473 B
C#
18 lines
473 B
C#
using System;
|
|
using TDengine.Driver;
|
|
using TDengine.Driver.Client;
|
|
|
|
namespace Examples
|
|
{
|
|
public class WSConnExample
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var builder = new ConnectionStringBuilder("protocol=WebSocket;host=localhost;port=6041;useSSL=false;username=root;password=taosdata");
|
|
using (var client = DbDriver.Open(builder))
|
|
{
|
|
Console.WriteLine("connected");
|
|
}
|
|
}
|
|
}
|
|
}
|