You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a multiplayer real-time CRM that requires inserting values into the JSON storage object from outside of the room context. For example, someone submits a support ticket on a page that is outside of a room context. Currently, this is a multi-step process.
Make API call to backend (i.e POST /api/ticket). <-- This is a Vercel serverless function
Persist full ticket details in DB (Postgres, Mongo, etc.)
Publish a message to a kafka topic with minimal ticket details (i.e id, title, createdAt)
Currently, my understanding is that websocket connections are required to modify storage which is not supported in a Vercel Lambda. Furthermore, these updates don't work if the room is at capacity. While I don't foresee this being a major issue, it is still an edge case. Ideally, I would like to replace steps 3 and 4 with an API call to liveblocks.
Additional context
The other documentation for modifying the storage objects will cause all users to be disconnected from the room. I think this is okay as, I could simply have users automatically reconnect once the write is finished.
The text was updated successfully, but these errors were encountered:
I'm building a multiplayer real-time CRM that requires inserting values into the JSON storage object from outside of the room context. For example, someone submits a support ticket on a page that is outside of a room context. Currently, this is a multi-step process.
POST /api/ticket
). <-- This is a Vercel serverless functionCurrently, my understanding is that websocket connections are required to modify storage which is not supported in a Vercel Lambda. Furthermore, these updates don't work if the room is at capacity. While I don't foresee this being a major issue, it is still an edge case. Ideally, I would like to replace steps 3 and 4 with an API call to liveblocks.
Describe the solution you'd like
To be clear, I'd like to be able to just make a simple API call to modify liveblocks storage that is compatible with a serverless environment. Ideally, it would be something similar to this: https://liveblocks.io/docs/guides/modifying-yjs-document-data-with-the-rest-api.
Additional context
The other documentation for modifying the storage objects will cause all users to be disconnected from the room. I think this is okay as, I could simply have users automatically reconnect once the write is finished.
The text was updated successfully, but these errors were encountered: