mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 03:25:32 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const { HelloworldService } = require("m3o/helloworld");
|
||||
|
||||
// Stream returns a stream of "Hello $name" responses
|
||||
async function streamsResponsesFromTheServerUsingWebsockets() {
|
||||
let helloworldService = new HelloworldService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await helloworldService.stream({
|
||||
name: "John",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
streamsResponsesFromTheServerUsingWebsockets();
|
||||
Reference in New Issue
Block a user