Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Everyone,
I am trying to create a chat program by implementing Comet protocol in WCF. My client will be in pure HTML5, CSS3 and javascript. I will be using jQuery as javascript library.
I have created my client but now tougher task is of creating comet service in WCF. Any detailed help provided by you guys is required as I have no deep knowlwdge of WCF services. Also I can't buy a dedicated hosting as it's expensive and my project will be a free software.

Thanx in Advance
Posted
Updated 17-Aug-13 9:31am
v3
Comments
Rubal Walia 17-Aug-13 15:30pm    
Is their noone who can help me???
[no name] 17-Aug-13 21:20pm    
Help you with what? You did not ask any kind of a question or describe any kind of a problem. The only thing I see here is a request for someone to do your research for you.
Rubal Walia 19-Aug-13 7:43am    
Thanks for your response, but I have did some of my research and asked for experience of someone who did that before so that I get through challenges in front. Thanx anyways.
Sergey Alexandrovich Kryukov 17-Aug-13 21:55pm    
Why WCF? Even though it could be possible in principle, one of the difficulties it that you need to use JavaScript the way it could consume WCF service you would develop. And why not using some already available server push technologies? What's your idea?
—SA
Rubal Walia 19-Aug-13 7:48am    
Well, Sergey Alexandrovich Kryukov; I managed to develop WCF service and communicate with Javascript on client it. I need to develop the whole thing by myself to have deep control over process and code. Thanx anyways. Any help would be appreciated.

1 solution

Please see my comment to the question.

First of all, I would question the need to develop a new Comet-based implementation of server push technology. First of all I would advise to pay attention for the ASP.NET SignalR library:
http://www.asp.net/signalr/overview/getting-started/introduction-to-signalr[^].

See also (just in case):
http://en.wikipedia.org/wiki/Push_technology[^],
http://en.wikipedia.org/wiki/Comet_%28programming%29[^].

Now, I have to admit that development in the direction of server push is very important and can help to work-around draconian limitations of HTTP protocol in particular and pure client-server paradigm in general, which is very important for many application fields. One obvious example is the Web chat applications. I only don't really understand what your contribution could bring to this field. As you are asking for help, we would have a right to know. After all, it is just a very interesting topic.

I pointed out one of the difficult part: consuming of a WCF service by JavaScript. WFC programming is designed to be fairly easy if both server and client parts are .NET applications, but what to do with other technologies? This CodeProject article, a prize winner, could be helpful for you: A beginner’s guide for consuming a WCF service in JavaScript using ASP.NET AJAX[^].

—SA
 
Share this answer
 
v2
Comments
Ron Beyer 17-Aug-13 22:21pm    
+5'd
Sergey Alexandrovich Kryukov 17-Aug-13 22:28pm    
Thank you, Ron. By the way, this is an example of pretty serious and difficult question... if it was a question. :-)
—SA
Rubal Walia 19-Aug-13 7:57am    
Thanx Sergey, well I must say I am developing a application that would add to open source community. I have some plans reserved for that. After I succed, I would definately share my xperience with rest of the world.
Your link was great about consuming WCf services using ASP.NET AJAX, but I neglect use of pages backed by ASP.NEt, I stick to use pure HTML pages and process them using javascript as I think using server pages increase load time hence decreasing client UX.
Sergey Alexandrovich Kryukov 19-Aug-13 10:09am    
All right, this stuff is not too simple, that's why.
Will you accept this answer formally (green button)? It would be perfectly fine if you won't...

Anyway, even though I did not clearly got the value of this work, this is probably due to limited information your provided; it looks like a very interesting project.
Wish you the best of luck,
—SA
Rubal Walia 19-Aug-13 13:45pm    
Thanx Sergey, thanx once again for your post. I would like you to please join me in this project in free time if possible for u. Drop me a reply if intrested. Thanx a lot for your concern. And any help from your side will be greatful to open source community and my project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900