Created
March 18, 2020 13:35
-
-
Save HenriqueSilverio/a3ee2415b4cda7d367d22285392717f6 to your computer and use it in GitHub Desktop.
This file contains 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 client = { name: 'RabbitMQ' } | |
const broker = () => ({ | |
client, | |
connection: null, | |
async connect (url) { | |
if (!this.connection) { | |
this.connection = `Connected to: ${url}` | |
} | |
return this.connection | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment