-
Notifications
You must be signed in to change notification settings - Fork 8
Container Component
Lance edited this page Jan 11, 2014
·
7 revisions
The container
component represents an async connection between the client and server. The container
surrounds one or more pushTarget
components which can each subscribe to one or more topics.
Name | Type | Default | Required | Comments |
---|---|---|---|---|
transport | String | symbol:atmosphere.transport |
true | One of websocket , long-polling , streaming , ajax , sse (server side events) or jsonp . See here for supported browsers and servers |
fallbackTransport | String | symbol:atmosphere.fallbackTransport |
false | Fallback transport if transport is not available in the browser (same options as transport ) |
secure | boolean | symbol:atmosphere.secure |
false | Determines if async communication is over HTTP or HTTPS |
logLevel | String | symbol:atmosphere.logLevel |
false | Clientside log level |
options | JSONObject | false | Additional options (see here) |
<div
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
xmlns:p="tapestry:parameter"
xmlns:atmos="tapestry-library:atmos"
>
<atmos:container transport="websocket" fallbackTransport="long-polling">
<atmos:pushTarget topics="topic1" event="topic1Message" update="replace" element="span">
Initial content goes here
</atmos:pushTarget>
<atmos:pushTarget topics="prop:['topic2','topic3']" event="topic23Message" update="append" />
</atmos:container>
</div>