views:

172

answers:

4

I am designing an application such that it will have to react to certain actions required by the website, mostly the same way Last.FM client does (if you have used one)

The way Last.FM client works is that, it will register a custom protocol in Windows (lastfm://) and on their website, they use that protocol to trigger certain action on the player, e.g.:

lastfm://artist//similarartists

will actually direct any Last.FM client running to load up similar artists.

I would like to do the same thing for my application.

Is this a good idea? Is there any good alternatives to send a message from a website to a desktop client in this manner?

A: 

I think it's a great idea ... I've often wanted to see more applications that do this because the integration between web and local makes for a great experience (if you ignore any spammy related qualms)

Joel Martinez
That's exactly what I'm worried about...
chakrit
A: 

So what you are really asking is how to register a custom protocol in Windows?

MSDN has the official answer

From this SO discussion

Brian C. Lane
I already know how... I just need some opinions.
chakrit
Ahh, ok. Well for one thing you really can't send from the website to the application. Even using the custom URL your application will be making the connection to the website to get the data.
Brian C. Lane
A: 

Yes, it's a great idea, if you want to send a message from a website to a desktop without polling, custom protocls are probably the only way.

arul
A: 

@Joel @arul What about the potential for spams and leaks?

chakrit