Search code examples
c#socketsxamarinnugetportable-class-library

Xamarin Forms SocketsForPCL


I'm trying to get the SocketsForPCL working on my Xamarin Forms PCL project. I've included the nuget and TcpSocketClient ( var client = new TcpSocketClient(); ). The error I get -

Error: The type or namespace name 'TcpSocketClient' could not be found.

I'm guessing I'm doing something wrong with the 'bait and switch' approach, how do I get this this starting?


Solution

  • My 'using' line was all wrong, tried "using Sockets.Plugin.Abstraction;" Correct is using Sockets.Plugin;