Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create a web service to push messages to clients Pin
BobJanova6-Sep-11 0:40
BobJanova6-Sep-11 0:40 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 0:42
nitin_ion6-Sep-11 0:42 
GeneralRe: Create a web service to push messages to clients Pin
Pete O'Hanlon6-Sep-11 0:44
mvePete O'Hanlon6-Sep-11 0:44 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 0:47
nitin_ion6-Sep-11 0:47 
GeneralRe: Create a web service to push messages to clients Pin
BobJanova6-Sep-11 3:15
BobJanova6-Sep-11 3:15 
GeneralRe: Create a web service to push messages to clients Pin
PIEBALDconsult6-Sep-11 2:41
mvePIEBALDconsult6-Sep-11 2:41 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 3:09
nitin_ion6-Sep-11 3:09 
GeneralRe: Create a web service to push messages to clients Pin
BobJanova6-Sep-11 3:23
BobJanova6-Sep-11 3:23 
Polling is trivial (a client side timer or other mechanism that repeatedly makes a request to the service asking about updates).

The comet method I haven't heard of before, but it seems to be an abuse of the TCP timeout mechanism whereby you stall a request until there is an update. I'm not sure there is a way to do that with a WCF service without going in at the low level. This form of polling is bad though (for the reason that persistent connections are: while that request is open, it counts against your machine socket resources, concurrent connections etc which are generally more precious than bandwidth), except for very specific cases where you know there will be an update soon (within a second or so).

You can use callbacks in a WCF client to respond to a service request asynchronously (i.e. you fire it off, continue processing and respond to the request you initiated later). This would typically be used as part of polling, as you don't want to stall client interaction while you want for a response.

Honestly, for a chat application, you are better off either using persistent connections (think IRC) for an update-critical standalone app, or using simple HTTP with client side polling (either through AJAX or thick client code doing a similar thing) for a less update-critical one or a web (in browser) chat. This is not what web services are for and they will get in the way rather than helping you.
GeneralRe: Create a web service to push messages to clients Pin
Pete O'Hanlon6-Sep-11 3:25
mvePete O'Hanlon6-Sep-11 3:25 
AnswerRe: Create a web service to push messages to clients Pin
Tony Pazzard6-Sep-11 4:15
Tony Pazzard6-Sep-11 4:15 
AnswerRe: Create a web service to push messages to clients Pin
#realJSOP7-Sep-11 0:16
mve#realJSOP7-Sep-11 0:16 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion7-Sep-11 0:27
nitin_ion7-Sep-11 0:27 
GeneralRe: Create a web service to push messages to clients Pin
#realJSOP7-Sep-11 2:21
mve#realJSOP7-Sep-11 2:21 
AnswerRe: Create a web service to push messages to clients Pin
John Y.7-Sep-11 9:58
John Y.7-Sep-11 9:58 
QuestionDependency Injection Pin
siva4555-Sep-11 16:36
siva4555-Sep-11 16:36 
AnswerRe: Dependency Injection Pin
Abhinav S5-Sep-11 19:12
Abhinav S5-Sep-11 19:12 
QuestionHow can i present my new device to windows to recognise it? Pin
burhankaraman5-Sep-11 9:17
burhankaraman5-Sep-11 9:17 
AnswerRe: How can i present my new device to windows to recognise it? Pin
Evan Gallup5-Sep-11 17:51
Evan Gallup5-Sep-11 17:51 
AnswerRe: How can i present my new device to windows to recognise it? Pin
Eddy Vluggen5-Sep-11 21:52
professionalEddy Vluggen5-Sep-11 21:52 
QuestionRetail barcode question Pin
Jassim Rahma5-Sep-11 1:58
Jassim Rahma5-Sep-11 1:58 
AnswerRe: Retail barcode question Pin
Rob Philpott5-Sep-11 2:07
Rob Philpott5-Sep-11 2:07 
GeneralRe: Retail barcode question Pin
Jassim Rahma5-Sep-11 2:17
Jassim Rahma5-Sep-11 2:17 
GeneralRe: Retail barcode question Pin
kribo9-Sep-11 5:08
professionalkribo9-Sep-11 5:08 
AnswerRe: Retail barcode question Pin
OriginalGriff5-Sep-11 2:22
mveOriginalGriff5-Sep-11 2:22 
AnswerRe: Retail barcode question Pin
GuyThiebaut5-Sep-11 2:34
professionalGuyThiebaut5-Sep-11 2:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.