Search Unity

ASPNETCORE SignalR - dependency issues

Discussion in 'Scripting' started by MCrow, Nov 1, 2019.

  1. MCrow

    MCrow

    Joined:
    Jun 7, 2019
    Posts:
    2
    Hello,

    I'm trying to use SignalR Client with Unity 2018.4 LTS. I followed the steps in this guide to connect from .NET Framework 4.6.1 Class Library to my LAN ASP.NET Core 3.0 web server.
    I tried two versions of SignalR client, the newest one (3.0) and the most popular one (1.0.1). On both of these versions I'm having dependency issues when building connection

    Code (CSharp):
    1. connection = new HubConnectionBuilder().WithUrl("http://localhost:50580/servershub").Build();
    Does anyone have a working solution or an example running SignalR client on Unity?
    Thanks!
     
    SamuelGoldenbaum likes this.
  2. SamuelGoldenbaum

    SamuelGoldenbaum

    Joined:
    May 21, 2017
    Posts:
    47
    Ever resolve this?
     
  3. MCrow

    MCrow

    Joined:
    Jun 7, 2019
    Posts:
    2
    Sadly no :(
    As a workaround I just make web requests to my web API
     
  4. SamuelGoldenbaum

    SamuelGoldenbaum

    Joined:
    May 21, 2017
    Posts:
    47
  5. sany101

    sany101

    Joined:
    May 28, 2017
    Posts:
    4
    I ran into the same problem, wrote the server and client (Unity) on SignalR Core everything works in the editor very well and as it should. But when building for Android, it stops working, even there is no connection to the server. There is not a single error in the logs! Can you tell me how to fix this?