99designs / 99designs/gqlgen

How to send a message to a specific subscriber among the subscribers?

Open
#2,358 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.8k
Forks
1.3k
Avg merge
2d 36m
Merged PRs (30d)
26

Description

Hi everyone.
How to send a message to a specific subscriber among the subscribers?

```
func (r *subscriptionResolver) Message(ctx context.Context) (<-chan string, error) {

randomString := make(chan string, 1)
go func() {
<-ctx.Done()
}()

randomString <- randString(8)

return randomString, nil
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.