-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
type t | ||
|
||
val make : Yjs.Text.t -> Quill.t -> t | ||
val make : ?awareness:Yjs.Awareness.t -> Yjs.Text.t -> Quill.t -> t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type t = Jv.t | ||
|
||
external to_jv : t -> Jv.t = "%identity" | ||
|
||
let class_awarness = Jv.get Global.awareness_protocol "Awareness" | ||
let make doc = Jv.new' class_awarness [| Doc.Doc.to_jv doc |] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type t | ||
|
||
val to_jv : t -> Jv.t | ||
val make : Doc.Doc.t -> t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
let yjs = Jv.get Jv.global "yjs" | ||
let awareness_protocol = Jv.get Jv.global "awarenessProtocol" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
window.yjs = require('yjs') | ||
window.WebrtcProvider = require('y-webrtc').WebrtcProvider | ||
window.IndexeddbPersistence = require('y-indexeddb').IndexeddbPersistence | ||
window.awarenessProtocol = require('y-protocols/awareness.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
type t | ||
|
||
val make : room_name:string -> ?signaling:string list -> Doc.Doc.t -> t | ||
val make : | ||
room_name:string -> | ||
?signaling:string list -> | ||
?awareness:Awareness.t -> | ||
Doc.Doc.t -> | ||
t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module Webrtc_provider = Webrtc_provider | ||
module Indexeddb_persistence = Indexeddb_persistence | ||
module Awareness = Awareness | ||
include Doc | ||
include Y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters