如何在 Tizen C#(可穿戴设备)中创建套接字连接

How to create a socket connection in Tizen C# (Weareble)

我连接了 WebSocketSharp 库。 在服务器上,我看到一个新的客户端正在连接,然后在 VisualStudio 中弹出一个错误,在日志中的服务器上,我看到客户端已断开连接 同样在应用程序日志中,我看到消息 "Socket: open"

Tizen.NET 6.0.0.14995
Tizen.Wearable.CircularUI 1.4.0
WebSocketSharp-netstandard 1.0.1
Xamarin.Forms 4.3.0.908675
ws = new WebSocket("wss://server.com/socket.io/?EIO=3&transport=websocket");
ws.WaitTime = TimeSpan.FromSeconds(3);
ws.OnOpen += (sender, e) => {
   Tizen.Log.Debug(LOG_TAG, "Socket: open");
};
ws.Connect();

错误弹出窗口:

System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.Action`1.BeginInvoke(T obj, AsyncCallback callback, Object object)
   at WebSocketSharp.WebSocket.open()
   at WebSocketSharp.WebSocket.Connect()
   at testapp.App.StartTracking()
   at testapp.App.SetStatus(Boolean status)
   at testapp.UI.OnClick(Object sender, EventArgs args)
   at Xamarin.Forms.TapGestureRecognizer.SendTapped(View sender)
   at Xamarin.Forms.Platform.Tizen.TapGestureHandler.OnCompleted(View sender, Object data)
   at Xamarin.Forms.Platform.Tizen.GestureHandler.Xamarin.Forms.Platform.Tizen.IGestureController.SendCompleted(View sender, Object data)
   at Xamarin.Forms.Platform.Tizen.GestureDetector.OnGestureCompleted(GestureType type, Object data)
   at Xamarin.Forms.Platform.Tizen.GestureDetector.<>c__DisplayClass25_0.<AddTapGesture>b__1(TapData data)
   at ElmSharp.GestureLayer.<>c__DisplayClass61_0`1.<SetCallback>b__0(Object info)
   at ElmSharp.GestureLayer.GestureCallbackHandler(IntPtr data, IntPtr event_info)
   at Tizen.Applications.CoreBackend.UICoreBackend.Run(String[] args)
   at Tizen.Applications.CoreApplication.Run(String[] args)
   at Tizen.Applications.CoreUIApplication.Run(String[] args)
   at testapp.Program.Main(String[] args) occurred

我设法使用另一个库实现套接字连接 - https://archive.codeplex.com/?p=websocket4net