GraphQL Subscriptions

Does anyone have a simple, working example of using GraphQL Subscriptions? It doesn’t matter what library. The server I’m using is AWS AppSync, which doesn’t offer a WebSockets endpoint because it uses MQTT.