EventSource
graphql-sse
EventSource | graphql-sse | |
---|---|---|
1 | 4 | |
20 | 372 | |
- | - | |
7.5 | 8.1 | |
13 days ago | 19 days ago | |
Swift | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
EventSource
graphql-sse
-
Graph-ql subscriptions without Apollo
The GraphQL over SSE in its simplest form IMHO does not require an additional client library. Setting up a subscription in the browser is as simple as doing the following:
-
GraphQL Subscriptions: Why we use SSE/Fetch over Websockets
There is already a JavaScript implementation for server + client with support for multiplexing from the same maintainer of graphql-ws: graphql-sse
-
how it subscription work on the apollo server?
Actually WebSocket is not the only protocol for executing GraphQL subscriptions. There is also a graphql-over-sse protocol, which is much more lightweight, and uses Server Sent Events. A popular implementation of it is the graphql-sse library, which is maintained by the same person as graphql-ws. The setup and API of both libraries is pretty similar.
-
GraphQL over SSE (Server-Sent Events)
graphql-sse is a reference implementation of the GraphQL over Server-Sent Events Protocol aiming to become a part of the GraphQL over HTTP standard.
What are some alternatives?
eventsource - EventSource client for Node.js and Browser (polyfill)
graphql-ws - Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
HeliPort - Intel Wi-Fi Client for itlwm
aws-lambda-graphql - Use AWS Lambda + AWS API Gateway v2 for GraphQL subscriptions over WebSocket and AWS API Gateway v1 for HTTP
ios-application - A native, lightweight and secure one-time-password (OTP) client built for iOS; Raivo OTP!
graphql-over-http - Working draft of "GraphQL over HTTP" specification
fetch-event-source - A better API for making Event Source requests, with all the features of fetch()
Express - Fast, unopinionated, minimalist web framework for node.
fastify - Fast and low overhead web framework, for Node.js
graphql-yoga - 🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.
graphql-zeus - GraphQL client and GraphQL code generator with GraphQL autocomplete library generation âš¡âš¡âš¡ for browser,nodejs and react native ( apollo compatible )
fastify-sse-v2 - Provide Server-Sent Events to Fastify