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:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/micro/services/clients/go/stream"
|
||||
)
|
||||
|
||||
// SendMessage a message to the stream.
|
||||
// Send a message to the stream.
|
||||
func SendMessage() {
|
||||
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := streamService.SendMessage(&stream.SendMessageRequest{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { StreamService } = require("m3o/stream");
|
||||
|
||||
// SendMessage a message to the stream.
|
||||
// Send a message to the stream.
|
||||
async function sendMessage() {
|
||||
let streamService = new StreamService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await streamService.sendMessage({
|
||||
|
||||
Reference in New Issue
Block a user