Merge pull request #132 from kkeybbs/master

Add server side transaction origin
This commit is contained in:
Kevin Jahns
2023-02-22 13:05:57 +01:00
committed by GitHub

View File

@@ -167,7 +167,7 @@ const messageListener = (conn, doc, message) => {
switch (messageType) { switch (messageType) {
case messageSync: case messageSync:
encoding.writeVarUint(encoder, messageSync) encoding.writeVarUint(encoder, messageSync)
syncProtocol.readSyncMessage(decoder, encoder, doc, null) syncProtocol.readSyncMessage(decoder, encoder, doc, conn)
// If the `encoder` only contains the type of reply message and no // If the `encoder` only contains the type of reply message and no
// message, there is no need to send the message. When `encoder` only // message, there is no need to send the message. When `encoder` only