Skip to content
josephg edited this page Nov 2, 2012 · 1 revision

This will be moved to a new github repo once the server is in place

The streaming protocol is binary.

Each packet has:

  • Type (SUBMIT, CONFIRM, OP, OPEN, RESULT, CLOSE, CURSOR). 1 byte.
  • Length?

Open

enum {
  NEED_SNAPSHOT = 1,
  CREATE = 2,
};

struct OpenPacket {
  uint8_t flags;
  string docName;
};

Submit

struct SubmitPacket {
  uint32_t version;
  uchar data[]; // Whatever format the type uses
};

Text ops are encoded as

Clone this wiki locally