Skip to content

Save pending sharejs operations  #23

@fasib

Description

@fasib

The pending shajrejs operations should be safed to the localStorage, just in case that someone closes the window/tab with pending sharejs doc updates.

e.g:

if not connected && pendingData
  localStorage.setItem("DConv:partB", JSON.stringify(doc.pendingData));

if reconnect
  stillPending = JSON.parse(localStorage.getItem("DConv:partB");
  localStorage.removeItem("DConv:partB");
  doc.pendingData.push_each(stillPending);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions