Anybody been successful in using signalr?

In my project I’m trying to make a really simple client-server application using signalr.
As soon as I add the Microsoft.Aspnet.SignalR.Client nuget to the game library, paradox can’t compile.
I’m assuming it has something to do with the portable libraries thing.

What are you trying to do? Are you trying to connect to a web service or you want a continuous open connection?

Both actually :slight_smile:
At the moment I’m exploring what technical options I have for networking in paradox3d.
For the moment I just went with what I already know.
Suggestions are certainly appreciated.

I have a working paradox project that can call hub methods on my server and receive task results.
Documenting what what seems to work for me for future reference for me and maybe others:

  • Stop panda antivirus and run siliconstudio as admin
    These took a while to find as it is the combination of the two that locked files for me.
    AV can be re-enabled after first build it seems. Not sure what’s going on here.
  • Create new code library through paradox studio
    Creating portable class library through visual studio isn’t the same. Not sure what’s exactly going on here either
  • Open in VS (15 in my case)
  • Add nuget packages to game library in the following order rather then depending on dependency resolving as there’s something weird going on with the PCL restriction resolving in all the latest versions
  • Newtonsoft.json (v6.0.8, latest doesnt work in profile PCL profile 151)
  • Microsoft.net.http (latest works, currently 2.2.29)
  • Aspnet.signalr.client (2.1.2, latest doesnt work in profile pcl profile 151)

To do the usual http methods like PUT, POST, GET, etc. using a REST service or XML service just use RestSharp lib.

If you need to keep a connection open. I would use TCP sockets. A library like Helios would make things easy to setup, client, server, authentication, encryption, etc. http://helios-io.github.io/#

Helios looks nice.
Will look into it later