Aspnetcore SignalR 1.0.0-rc1-final: not working RRS feed

  • Question

  • User-920806005 posted

    Hi everyone, I'm using signalr for simple real-time chat application.

    Previously I installed version 1.0.0-preview1-final (both client and server side) and chat application worked.

    Now I updated them to 1.0.0-rc1-final; results: I can't connect to server.
    Here it is my client-side code.

    import signalR, { HubConnection, HubConnectionBuilder } from '@aspnet/signalr';
      const connection = new signalR.HubConnectionBuilder()
    connection.on("send", data => {
    .then(() => connection.invoke("send", "Hello"))
    .catch(() => console.log("error"));

    I get the error "Unable to get property 'HubConnectionBuilder' of undefined or null reference".
    So, i removed signalR. before HubConnectionBuilder, and i get these errors: 1-Failed to complete negotiation with the server: Error. 2-Failed to start the connection: Error

    Any ideas to solve this problem?

    Thursday, May 10, 2018 10:12 AM

All replies

  • User61956409 posted

    Hi Pasto92,

    You can provide the repo of your project, then we can help check your code and troubleshoot the issue.

    With Regards,

    Fei Han

    Friday, May 11, 2018 6:03 AM
  • User-920806005 posted



    Friday, May 11, 2018 7:42 AM
  • User61956409 posted

    Hi Pasto92,

    Based on your hub server project, I do a test with my SignalR JavaScript client app, and my SignalR JavaScript client can communicate well with your hub server, so your hub server project has been upgraded to 1.0.0-rc1-final successfully.

    If your client app can not communicate with your hub server, perhaps the SignalR JavaScript client library does not install well for your client app.  

    With Regards,

    Fei Han

    Thursday, May 17, 2018 10:02 AM