~/talk

Building a Realtime Chat with GraphQL Subscriptions

Talkat React Alicante 2017 · 2017-09-28..09-30· [graphql, react]
links:none on file
slides:none on file

Demonstrates building a realtime messenger that actually sends and receives messages using GraphQL Subscriptions with React and Apollo Client, wired via subscriptions-transport-ws to a Graphcool backend. Creates users and messages with mutations, subscribes to new-message events, and updates the UI via subscribeToMore so messages appear instantly; adds a serverless hook that inspects incoming messages and sends Mailgun alerts for a forbidden word. Live demo works; scaling question about ~50k connections remains implementation dependent.

AI-written summary · about

  1. 0:00Start
  2. 2:15What's GraphQL?
  3. 4:39Example: Blogging App with REST
  4. 9:42Queries
  5. 11:38Mutations
  6. 17:58Query Variables
  7. 23:41The Stack
  8. 24:09GraphQL Clients
  9. 26:19Chat UI
  10. 26:44React Components
  11. 38:44Server-side Subscriptions
  12. 44:28Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.