Update README.md

This commit is contained in:
George 2019-10-28 20:01:17 +03:00 committed by GitHub
parent a805d2476a
commit d30c5dd19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ A little experiment for co-editing.
Based on idea of https://github.com/humandx/slate-automerge Based on idea of https://github.com/humandx/slate-automerge
Watch the demo Check the [Demo](https://slate-collaborative.herokuapp.com/)
# API # API
@ -46,7 +46,7 @@ const connection = new CollaborativeBackend(options)
### options: ### options:
``` ```
{ {
port: number // port to start io connection entry: number // port or Server for listen io connection
connectOpts?: SocketIO.ServerOptions connectOpts?: SocketIO.ServerOptions
defaultValue?: ValueJSON // default value defaultValue?: ValueJSON // default value
saveTreshold?: number // theshold of onDocumentSave callback execution saveTreshold?: number // theshold of onDocumentSave callback execution