Last active
July 10, 2017 23:11
-
-
Save muratgozel/ebd087b920eb6655d858678f37664565 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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