x First time here? Check out the FAQ

Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!

  • Avatar861posts1605karma

    Ideas for using SignalR (or websockets)

    Jonas Eriksson started this topic November 21, 2011 @ 03:00

    Anyone up for sharing some ideas about possible ways to make use of SignalR/Websockets/Long polling in Umbraco?

    I sent out a tweet and got responses quickly :)

    Matt Brailsford about a seriously cool idea from CG11  

    Lee Kelleher already have the uBackChat package in the deli.

    Tim Saunders mentioned he looked at SignalR for his Umbraco web hooks .

    Morten Christensen have a sample it running in Umbraco 5

    I started to hack with it to get started with some kind of admin broadcast messaging going. http://joeriks.com/2011/11/21/using-signalr-with-umbraco-to-broadcast-messages-or-chat-15-minutes/ (made a package to install SignalR, havent uploaded it to the Deli just yet tho)

    It would be really cool to have a good idea thread running here :)


  • Lee Kelleher posted this reply December 13, 2011 @ 04:18

    Hi Jonas,

    The idea of using SignalR in the Umbraco back-office would offer some exciting development/packages!

    I truly believe that Matt's uCollaborate idea is possible... but far too much work for a single (or couple of) developers ... especially if it is to be a free/open-source package! (Personally, I've considered it as a commercial venture ... but came to a decision that couldn't invest the time/effort required).

    What I would like to see is a base framework for using SignalR within the Umbraco back-office, then have contributions for the various modules: e.g. chat/IM, notes, who's online, content editing/locking, realtime mouse-cursors, etc.

    Still excited by the possibilities!

    Cheers, Lee.


  • Lee Kelleher posted this reply December 13, 2011 @ 05:26

    Sinister idea... uSpy - for a (super)admin to monitor what users are doing (in realtime).  e.g. "John is has published document 'About Us' (1234)", "Jane is editing an XSLT file 'Navi.xslt'", etc.


  • Avatar861posts1605karma
    Comment with ID: 99872
    Jonas Eriksson posted this reply December 13, 2011 @ 05:43

    Hi Lee,

    When I think about the different feature ideas here - I think a simple chat window (like you already made) would be the feature I would most likely to add to my existing sites. I have not experienced much problems with editors trying to edit the same content at the same time yet - it's more a problem to get them to spend some time in the umbraco UI at all, and for them to remember how and where to edit stuff :) Seing co-workers online and being able to ask / discuss with them would be inspiring and I'm sure of real use for the people in the organizations I have been working with so far.

    Cheers


  • Avatar413posts395karma
    Comment with ID: 108589
    jaygreasley posted this reply February 20, 2012 @ 06:08

    Hey guys,

     

    I've just started implementing a simple chat solution using SignalR in Umbraco.

    I've hit a snag and wondered if anyone else has seen it.

    The app seems to be timing out or losing it's connection after about 70 -90 seconds of inactivity.

    I just wondered if anyone has noticed this/solved it?

    tia

    Jay


  • Avatar413posts395karma
    Comment with ID: 108597
    jaygreasley posted this reply February 20, 2012 @ 08:34

    So, it seems like the problem is that Umbraco is trying to route the SignalR calls, such as :

     /signalr?transport=longPolling&connectionId=727f8670-d69c-4fde-a5ee-b78d5077de95&connectionData=%5B%7B%22name%22%3A%22Chat%22%2C%22methods%22%3A%5B%22newChatReceived%22%2C%22addChatMessage%22%5D%7D%5D&messageId=5 HTTP/1.1

    I have ~/signalr in UmbracoReservedPaths in web.config but this doesn't seem to be enough

    any ideas?

    TIA

    Jay


  • Avatar26posts129karma
    Comment with ID: 108598
    Carsten Fallesen posted this reply February 20, 2012 @ 08:43

    Hi Jay,

    I have ~/signalr in the UmbracoReservedUrls rather than UmbracoReservedPaths. That seems to work for me.

     

    Carsten


  • Avatar413posts395karma
    Comment with ID: 108643
    jaygreasley posted this reply February 21, 2012 @ 10:33

    Hey Carsten,

    Well spotted, thanks. All working properly now :-) 

    I won't high five it because (my bad) it's a bit off topic for the post but thank you

    Jay


Please login or Sign up To post replies