package
Memory database adapter for Yjs
npm install y-memoryGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Use the Memory database adapter to store your shared data efficiently in-memory. The next time you join the session, your changes will be lost
Install this with bower or npm.
bower install y-memory --savenpm install y-memory --saveY({
db: {
name: 'memory'
},
connector: {
name: 'websockets-client', // use the websockets connector
room: 'Textarea-example-dev'
},
share: {
textarea: 'Text' // y.share.textarea is of type Y.Text
}
}).then(function (y) {
// bind the textarea to a shared text element
y.share.textarea.bind(document.getElementById('textfield'))
}Yjs is licensed under the MIT License.