Socket with Universal windows phone 8.1

I have a project which target WP 8.0 and I use System.Net.Sockets in that project

Now I need to upgrade it into Windows phone universal 8.1 then when I build the project and run , it tell me that the System.Net.Sockets is not available in current target platform ? So how can I working with socket ? Or I do something wrong ?

Thanks.

Socket class is not available in .NET for Windows store. You have to rewrite your code to get rid of it.