feat: garbage cursors on client

This commit is contained in:
cudr
2019-10-27 15:43:12 +03:00
parent 6ec91963c6
commit 8d7a10be1b
5 changed files with 45 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
const Connection = require('@slate-collaborative/backend')
const defaultValue = require('./src/defaultValue')
const server = require('http').createServer()
const config = {
port: 9000,
entry: server, // or specify port to start io server
defaultValue,
saveTreshold: 2000,
onAuthRequest: async (query, socket) => {
@@ -19,3 +20,5 @@ const config = {
}
const connection = new Connection(config)
server.listen(9000)