Base solution for your next web application
Open Closed

SignalR integration in module zero #4611


User avatar
0
omarsultan created

i am trying to make my notification system realtime so i tried to do this tutorial [https://aspnetboilerplate.com/Pages/Documents/SignalR-AspNetCore-Integration]) , i am getting this error "Failed to load resource: the server responded with a status of 404 (Not Found) <ins>hubs</ins>"

thanks


7 Answer(s)
  • User Avatar
    0
    omarsultan created

    The client tries to load this url: <a class="postlink" href="http://ip:port/signalr/hubs">http://ip:port/signalr/hubs</a> and it gets 404

  • User Avatar
    0
    aaron created
    Support Team
  • User Avatar
    0
    omarsultan created

    yes and i am trying to use it with webApi with angular

  • User Avatar
    0
    aaron created
    Support Team

    For Angular, did you add:

  • User Avatar
    0
    omarsultan created

    I added them now, that wasn't clear in the Docs. Thanks for that. but the value in this.appSession.application.features['SignalR'] and ['SignalR.AspNetCore'] are always false, I guess I should set them to True somehow

    Thanks for your help

  • User Avatar
    0
    aaron created
    Support Team

    I added them now, that wasn't clear in the Docs.

    I'll update the docs in a bit. Thanks for your feedback!

    but the value in this.appSession.application.features['SignalR'] and ['SignalR.AspNetCore'] are always false, I guess I should set them to True somehow

    You can simply force them to be true, or define:

  • User Avatar
    0
    omarsultan created

    thanks to you!