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
The problem I am facing
I'm using the Webhook extension which correctly sends the document payload (content in json) to my given webhook URL.
The solution I would like
I would like also to send binary data along with the json data to store directly in the db
Alternatives I have considered
Storing json in DB. This doesn't work correctly as whenever I restart hocus-pocus, it appends the incoming data (in onLoadDocument)
Additional context
I convert the document from json to plain text on the server, which is saved to the file system for my users that want to download plain text, I'd like to also save the binary data to enable history merge/update for edit inside my app.
This looks like a pretty custom setup ; you need to make sure that you save and load the same yjs data, otherwise you get duplicated content (as you noticed). Feel free to extend the webhook extension to push / pull the data when needed (onStoreDocument / onLoadDocument). As long as you store + pull yjs binary, it will work.
The problem I am facing
I'm using the
Webhook
extension which correctly sends the document payload (content in json) to my given webhook URL.The solution I would like
I would like also to send binary data along with the json data to store directly in the db
Alternatives I have considered
Additional context
I convert the document from json to plain text on the server, which is saved to the file system for my users that want to download plain text, I'd like to also save the binary data to enable history merge/update for edit inside my app.
The text was updated successfully, but these errors were encountered: