title: SignalR Javascript Connectivity Issues
body: <p>I have an Azure Function running in localhost which has a SignalR output binding as follows:</p>
  <pre><code>[FunctionName(&quot;FxAdoHttpTrigger&quot;)]
          public static async Task Run(
              [HttpTrigger(AuthorizationLevel.Function, &quot;post&quot;, Route = null)] HttpRequest req,
              [SignalR(HubName = &quot;AdoEvents&quot;)] IAsyncCollector&lt;SignalRMessage&gt; signalRMessages,
              ILogger log)
          {
              log.LogInformation(&quot;C# HTTP trigger function processed a request.&quot;);
  
              string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
              var data = JsonConvert.DeserializeObject(requestBody);
       
              await signalRMessages.AddAsync(
                  new SignalRMessage
                  {
                      Target = &quot;newMessage&quot;,
                      Arguments = new[] { data }
                  });
          }
      }
  </code></pre>
  <p>The following Javascript is in a web app running on localhost:</p>
  <pre><code>connection.on(&quot;newMessage&quot;, (data) =&gt; {
      const li = document.createElement(&quot;li&quot;);
      li.textContent = `${data}`;
      document.getElementById(&quot;messageList&quot;).appendChild(li);
  });
  
  async function start() {
      try {
          await connection.start();
          console.log(&quot;SignalR Connected.&quot;);
      } catch (err) {
          console.log(err);
          setTimeout(start, 5000);
      }
  };
  
  connection.onclose(async () =&gt; {
      alert('onclose fired');
      //await start();
  });
  
  // Start the connection.
  start();
  </code></pre>
  <p>The appSetting in the web app running locally is:</p>
  <pre><code>{
    &quot;Logging&quot;: {
      &quot;LogLevel&quot;: {
        &quot;Default&quot;: &quot;Information&quot;,
        &quot;Microsoft&quot;: &quot;Warning&quot;,
        &quot;Microsoft.Hosting.Lifetime&quot;: &quot;Information&quot;
      }
    },
    &quot;Values&quot;: {
      &quot;AzureSignalRConnectionString&quot;: &quot;Endpoint=https://XXXsignalr-jjjjj.service.signalr.net;AccessKey=secret;Version=1.0;&quot;
    },
    &quot;AllowedHosts&quot;: &quot;*&quot;
  }
  </code></pre>
  <p>I consistently get &quot;SignalR Connected&quot; but no client connection shows up in the SignalR Live Trace. No matter what i change the connection string to, I always get success on connect.</p>
  <p>Since the Azure Function is publishing to SignalR separately from the Web App, who only wants to read newMessage, I'm at a loss of what i am missing. Do I need a newMessage method in my /Hubs/AdoEvent hub? I have no methods in the hub:</p>
  <pre><code>   public class AdoHub : Hub
      {
  
      }
  </code></pre>
  <p>I'm missing something obvious. Any help would be greatly appreciated.</p>