Skip to content

Instantly share code, notes, and snippets.

View kevinhu's full-sized avatar
🌴
On vacation

Kevin Hu kevinhu

🌴
On vacation
View GitHub Profile
@kevinhu
kevinhu / yjs-pg-server.js
Created May 16, 2023 21:27 — forked from bumi/yjs-pg-server.js
implementation of a websocket server storing yjs documents in a postgresql database
const WebSocket = require('ws');
const http = require('http');
const Y = require('yjs');
const wsUtils = require('./utils');
const cookie = require('cookie');
const QuillDelta = require('quill-delta');
//const QuillConverter = require('node-quill-converter');
//const MdastFromQuillDelta = require('mdast-util-from-quill-delta');