Getting Started with SignalR 2.0 and MVC 5

This is the application created in the Getting Started with SignalR 2.0 and MVC 5 tutorial.

C# (436.0 KB)
 
 
 
 
 
4.7 Star
(3)
39,325 times
Add to favorites
4/18/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 555-555-0199@example.com
    1 Posts | Last post October 13, 2017
    • 555-555-0199@example.com
  • Remote hosted server
    1 Posts | Last post October 15, 2015
    • I have a system that I would like to implement SignalR into and was wondering what would be the best way to do it. I will be using a collection of WCF services to run as a server to host a client application. Since the clients are connecting through the internet, I'm not sure on what ServerUri to start the SignalR server and have the clients connect to.
      
      If the server starts at localhost on the server, which is connected to the url something.com, should the clients connect to something.com? Should the server start at something.com?
      
      Any insight would be appreciated, thanks.
  • If I upgarade to latest version of signalR via nuget to 2.2.0 the sample no longer runs.
    2 Posts | Last post August 20, 2015
    • I was following this sample building from scratch,  when complete I attempted to run the completed version and got an error:
      
      Unhandled exception at line 18, column 9 in http://localhost:52527/signalr/hubs
      
      0x800a139e - JavaScript runtime error: SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/js.
      
      
      I then downloaded the complete solution from this page.  I ran the example and found that it worked fine.
      
      I then updated this downloaded sample via nuget to the latest version of signalr 2.2.0 (in fact I allowed nuget to update all components) When I re-ran I get the same error I did when I built the sample from scratch!
      
      
      Unhandled exception at line 18, column 9 in http://localhost:52527/signalr/hubs
      
      0x800a139e - JavaScript runtime error: SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/js.
      
      
      What has changed to give this error and what can I do to resolve the issue?
    • My bad, the nugget update did not update the page references.  I should have realised this.  All fixed now,
  • Attributes in addnewMessage
    2 Posts | Last post May 30, 2015
    • Hi Patrick, 
      
      I was wondering whether more attributes can be added  like:
      Clients.All.addNewMessageToPage(name, message, other);
      
      thanks,
      K.
    • Of course you can.
      Clients.All.XXX——Here method name is of a dynamic type.
  • IIS Server
    1 Posts | Last post January 08, 2015
    • Hello.
      I've downloaded sample code and it is working under IIS Express.
      But when I try to run it under IIS Server ( Windows 8 ) I can only chat witch one person.
      I have simple try:
      - first browser - working
      - second browser - working
      - third browwer - every thing huns out, if I close third browser, first two starts working again...