apteryxxyz / next-ws

Add support for WebSockets in Next.js app directory.
https://npmjs.com/next-ws
171 stars 12 forks source link

Persistence and multi instance setup #10

Closed gsogol closed 9 months ago

gsogol commented 10 months ago

Thank you for your work.

1) looks like this doesn't work with the latest nextjs version. Not sure what the issue is :( 2) how are messages persisted? For example socket.io can persist in redis or postgres. what happens when a client reconnects and connects to a new instance (assuming multiple backend instances are running)?

🙏

apteryxxyz commented 10 months ago
  1. As far as I can tell it still works image

  2. The purpose of this package is to just expose a way to receive WebSocket connections in the app router using the NPM package ws, anything else is out of scope for this package.