Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-02 13:30:51 +00:00
parent 2dbc66ebd7
commit 93b1c73b18
15 changed files with 151 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
const { EventService } = require("m3o/event");
// Publish a message to the event. Specify a topic to group messages for a specific topic.
async function publishAmessage() {
let eventService = new EventService(process.env.MICRO_API_TOKEN);
let rsp = await eventService.publish({
message: {
id: "1",
type: "signup",
user: "john",
},
topic: "user",
});
console.log(rsp);
}
publishAmessage();