Skip to content

Instantly share code, notes, and snippets.

@muratgozel
Last active July 10, 2017 23:11
Show Gist options
  • Save muratgozel/ebd087b920eb6655d858678f37664565 to your computer and use it in GitHub Desktop.
Save muratgozel/ebd087b920eb6655d858678f37664565 to your computer and use it in GitHub Desktop.
const redis = require('redis')
// Create a standart redis client which will be a publisher in our case.
const pub = redis.createClient()
// Publish a message by specifying a channel name.
pub.publish('parameter-mapping', JSON.stringify({
csrfToken: 'js9n393c32h3....00dk3j3u439011'
// You can also send any additional parameters.
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment