Hello,
Welcome to our Microsoft Q&A platform!
If you want to use WebSocket in Xamarin.iOS, declare a namespace(using Foundation) to access NSUrlSessionWebSocketTask,then use C# to implement it. The following code shows a sample:
NSUrlSession session = NSUrlSession.SharedSession;
NSUrlSessionWebSocketTask task = session.CreateWebSocketTask(new NSUrl(""));
Best Regards,
Wenyan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.