mirror of
https://github.com/yjs/yjs.git
synced 2026-02-24 04:01:14 +01:00
add toBinary and fromBinary to Y.utils
This commit is contained in:
6
src/Y.js
6
src/Y.js
@@ -24,6 +24,8 @@ import Transaction from './Transaction.js'
|
||||
|
||||
import TextareaBinding from './Binding/TextareaBinding.js'
|
||||
|
||||
import { toBinary, fromBinary } from './MessageHandler/binaryEncode.js'
|
||||
|
||||
export default class Y extends NamedEventHandler {
|
||||
constructor (room, opts, persistence) {
|
||||
super()
|
||||
@@ -207,7 +209,9 @@ Y.utils = {
|
||||
getRelativePosition,
|
||||
fromRelativePosition,
|
||||
addType,
|
||||
integrateRemoteStructs
|
||||
integrateRemoteStructs,
|
||||
toBinary,
|
||||
fromBinary
|
||||
}
|
||||
|
||||
Y.debug = debug
|
||||
|
||||
Reference in New Issue
Block a user