graphile / starter

Opinionated SaaS quick-start with pre-built user account and organization system for full-stack application development in React, Node.js, GraphQL and PostgreSQL. Powered by PostGraphile, TypeScript, Apollo Client, Graphile Worker, Graphile Migrate, GraphQL Code Generator, Ant Design and Next.js
https://graphile-starter.herokuapp.com
Other
1.73k stars 214 forks source link

Add explicit system for handling 'upgrade' events #354

Closed benjie closed 1 year ago

benjie commented 1 year ago

Both Next.js and PostGraphile want to add 'upgrade' events to Node. These events can conflict and lead to problems. To solve this, we've added an explicit upgrade management layer.

Note that due to limitations with the libraries, even if we were using @fastify/websocket with Fastify we would still need to do these kinds of shenanigans.