This is a simple GraphQL subscription server example using graphql-yoga.
Run npm run start to start the server.
Go to http://localhost:3000/playground to launch the GraphQL Playground.
Subscribe to the server:
subscription {
  sensor {
    time
    temp
    humidity
  }
}