Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Demo App showing Platform Events from Heroku to sSalesforce, and from Salesforce to Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published