ajax - What's the Best Way to Open a TCP Stream to Server? -


rather hard nail down question, i'm wondering best way (and not "what's opinion" "which adequately meet requirement shall set forth) open stream connection client side webpage server such either can send data other without polling? i'm thinking term http binding vs. http polling. context here chat application - i'd streamed connection browser isn't pushing requests out. client end here knockoutjs , jquery. i'd able have data pushed , forth json (or @ least manipulatable jquery , knockout's tojson). server end - not quite sure going be, i'll running on linux server, compatible works fine. if there's more details can provide, let me know - i'm sure left obvious detail out. also, i'm aware there's duplicate question on this, if answer closing dupe , putting in link, that's great. thanks!

i think you're looking referred comet. basic idea keep http requests open longer periods of time server can send data client comes in, rather client having continually poll server new data. there multiple ways implement it. wikipedia article start more info.

this mix 2011 video discusses long polling technique (although suggestion in video web sockets better solution future browsers).


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -