Skip to content
Demo App showing Platform Events from Heroku to sSalesforce, and from Salesforce to Heroku
HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
public
routes
views
.gitignore
Procfile
README.md
app.js
config.js
package.json

README.md

platform-event-socketio

Node demo that streams Platform Events from Salesforce.com to the browser using socket.io. You can run the demo by opening:

platform-event-socketio demo - New Platform Events are streamed to this app and display in the browser using socket.io.

Setup Remote Access in Salesforce.com

Setup a new Remote Access to get your OAuth tokens. If you are unfamiliar with settng this up, see 4:45 of Jeff Douglas' Salesforce.com Primer for New Developers. For your callback, simply use: http://localhost:3001/oauth/_callback

Create a Platform Event Definition in Salesforce.com

Create a new Platform Event from the Setup Menu of your Salesforce Instance.

Running the Application Locally

git clone https://github.com/jthurst/platform-event-socketio.git
cd platform-event-socketio
npm install

This will clone this repo locally so you simply have to make your config changes and be up and running. Now replace your OAuth tokens and credentials in the config.js file then run the following to start the server:

node app.js

Open your browser to http://localhost:3001 and creat a Platform Event Salesforce and see it appear on the page.

You can’t perform that action at this time.