Skip to content

Commit 45a0972

Browse files
authoredJul 25, 2022
add videos (#1462)
1 parent 7d103ed commit 45a0972

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎website/docs/features/subscriptions.mdx

+14
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,20 @@ data: {"data":{"countdown":1}}
8383
data: {"data":{"countdown":0}}
8484
```
8585

86+
> Watch [Episode #52 of `graphql.wtf`](https://graphql.wtf/episodes/52-graphql-subscriptions-with-server-sent-events) for a quick introduction to using GraphQL Subscriptions with Server Sent Events:
87+
88+
<br />
89+
90+
<iframe
91+
width="100%"
92+
height="400"
93+
src="https://www.youtube.com/embed/oZtTut7QsZ8"
94+
title="GraphQL Subscriptions with Server Sent Events"
95+
frameBorder="0"
96+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
97+
allowFullScreen
98+
></iframe>
99+
86100
## Handling subscriptions on the client
87101

88102
WHATWG standard [`EventSource`](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) can be used without any extra packages to handle SSE.

‎website/docs/quick-start.mdx

+10
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,13 @@ const server = createServer({
6464

6565
server.start()
6666
```
67+
68+
<iframe
69+
width="100%"
70+
height="400"
71+
src="https://www.youtube.com/embed/_-B6QIFSSwo"
72+
title="GraphQL Yoga 2"
73+
frameBorder="0"
74+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
75+
allowFullScreen
76+
></iframe>

0 commit comments

Comments
 (0)
Please sign in to comment.