From 528ee75ebdf1ebd14e15ba824111e4eaddb60018 Mon Sep 17 00:00:00 2001 From: George Date: Sat, 19 Oct 2019 22:43:55 +0300 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8aaa9d0..588d161 100644 --- a/README.md +++ b/README.md @@ -44,20 +44,20 @@ const connection = new CollaborativeBackend(options) ### options: ``` { - port: number + port: number // posrt to start io connection connectOpts?: SocketIO.ServerOptions - defaultValue?: ValueJSON - saveTreshold?: number - cursorAnnotationType?: string - onAuthRequest?: ( + defaultValue?: ValueJSON // default value + saveTreshold?: number // theshold of onDocumentSave callback execution + cursorAnnotationType?: string // type string for cursor annotations + onAuthRequest?: ( // auth callback query: Object, socket?: SocketIO.Socket ) => Promise | boolean - onDocumentLoad?: ( + onDocumentLoad?: ( // request slatejs document callback pathname: string, query?: Object ) => ValueJSON | null | false | undefined - onDocumentSave?: (pathname: string, json: ValueJSON) => Promise | void + onDocumentSave?: (pathname: string, json: ValueJSON) => Promise | void // save document callback } ```