Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Step 3: Create the Static Resources

  1. Download this static resource .zip file: streaming_api_interactive_visualforce_demo-v40.zip
  2. Extract the following files from the .zip fle:
    File Name Description
    cometd.zip Files for CometD version 3.1.0 and the Dojo toolkit used by demo.js. When you define a .zip archive file as a static resource, Visualforce can access the files in that archive. The .zip file becomes a virtual file system.
    demo.css The CSS code that formats the Visualforce page.
    demo.js The code used by the page to subscribe to the channel, receive and display the notifications, and unsubscribe from the channel.
    json2.js The JavaScript library that contains the stringify and parse methods.
    StreamingApiDemo The Visualforce page that displays the Streaming API notifications.
  3. From Setup, enter Static Resources in the Quick Find box, then select Static Resources to add the extracted files with the following names:
    File Name Static Resource Name
    cometd.zip cometd_zip
    demo.css demo_css
    demo.js demo_js
    json2.js json2_js