mirror of
https://github.com/cudr/slate-collaborative.git
synced 2026-03-02 03:40:18 +00:00
feat: garbage cursors on client
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user