title: How to send data from ReactJs to signalR? In Asp.net Mvc Web Api
body: <p>Im getting a problem when i want to send data from React Component to hub It's Not send...
  Note Hub is connected to client But Data Not Send/Recieve</p>
  <p>Hub Code</p>
  <pre><code>public void SendMessageToAll(string userName, string message)
          {
               Clients.All.messageReceived(userName, message );
  
          }
  </code></pre>
  <p>React Js Code:</p>
  <pre><code>import React, { Component } from 'react';
  import { Link } from 'react-router-dom';
  import { hubConnection } from 'signalr-no-jquery';
  
  
  class Dashboard extends Component {
     constructor(props) {    
     super(props);
     const connection = hubConnection('https://localhost:44332');
     const hubProxy = connection.createHubProxy('Chat');
  
     hubProxy.on('Hello', function(name) {
      console.log(name);
  });
      // atempt connection, and handle errors
      connection.start()
  
      .done(function(){ console.log('Now connected, connection ID=' + connection.id); })
      .fail(function(){ console.log('Could not connect'); });
  }
  
  
    render() {
      return (
          &lt;div/&gt;
      );
    }
  }
  
  export default Dashboard;
  </code></pre>