C#C
C#3y ago
PontiacGTX

❔ trying to consume signalr through gateway

I am using the followin json in my gateway
{
  "DownstreamPathTemplate": "/ws",
  "UpstreamPathTemplate": "/",
  "DownstreamScheme": "ws",
  "DownstreamHostAndPorts": [
    {
      "Host": "localhost",
      "Port": 7200
    }
  ]
},
{
  "DownstreamPathTemplate": "/DriversHub/GetDriversDetail/{number}",
  "DownstreamScheme": "ws",
  "DownstreamHostAndPorts": [
    {
      "Host": "localhost",
      "Port": 7200
    }
  ],
  "UpstreamPathTemplate": "/upwg/DriversHub/GetDriversDetail/{number}",
  "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ]
}
and the front end has this code
Was this page helpful?