Created
September 6, 2021 18:44
-
-
Save tadeubdev/58b218b5ff152ada9f84e418ee798e5e 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 redisSender = new Redis({ | |
| host: proccess.env.REDIS_HOST, | |
| password: 'proccess.env.REDIS_PASS, | |
| port: proccess.env.REDIS_POST, | |
| }); | |
| redisSender.publish('cwr-channel', JSON.stringify({ event: 'event.name', data: { teste: 123 } })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment