From 40e913e9c57ecaaec98229495c05d28db942f4a3 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Mon, 29 Jan 2018 16:39:09 -0800 Subject: [PATCH] add toBinary and fromBinary to Y.utils --- src/Y.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Y.js b/src/Y.js index 282f234f..568e36ff 100644 --- a/src/Y.js +++ b/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