summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js
diff options
context:
space:
mode:
authorfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2011-05-25 23:04:53 +0000
committerfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2011-05-25 23:04:53 +0000
commit2ce254f0a019c39dfe9b624e76b82c6d2b73873e (patch)
tree50c36ba8b85b44e9c5285d063b2fb831c193f5e9 /sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js
parent57f2ee3715e864547b8447e0b6cccf954800d009 (diff)
Add generic connect method to js client with default transport set to HTTP streaming and fallback on long polling.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1127716 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js')
-rw-r--r--sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js b/sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js
index 60bbbe4b98..589ae73e7f 100644
--- a/sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js
+++ b/sca-java-2.x/trunk/modules/binding-comet-runtime/src/main/resources/cometComponentContext.js
@@ -22,6 +22,9 @@ this.TuscanyComet = {
appUrl: 'tuscany-comet',
connectedEndpoint : null,
connect : function(transport) {
+ if(transport == null) {
+ transport = 'streaming';
+ }
$.atmosphere.subscribe(document.location.toString() + this.appUrl + "/connect",
this.callback,
$.atmosphere.request = {