paint-brush
GraphQL subscriptions using Apollo 2by@jlowery2663
11,517 reads
11,517 reads

GraphQL subscriptions using Apollo 2

by jefflowery3mDecember 29th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A side project involves writing a GraphQL API around the Universal Chess Interface (UCI) I originally developed a mock implementation and wrote about it awhile back. This post will cover the most basic implementation of subscription service and the client code that uses it. The GraphQL server will be based on ApolloServer, which will use an Express server as middleware. Subscriptions will use a WebSocket that is attached to a plain HTTP server (also managed by ApolloServer) There are two clients: the GraphQL Playground, and a client for use by Mocha to test the API.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - GraphQL subscriptions using Apollo 2
jefflowery HackerNoon profile picture
jefflowery

jefflowery

@jlowery2663

I'm an early adopter kinda guy.

Learn More
LEARN MORE ABOUT @JLOWERY2663'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

jefflowery HackerNoon profile picture
jefflowery@jlowery2663
I'm an early adopter kinda guy.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite