implemented experimental websockets-connector
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import ID from '../ID/ID.js'
|
||||
import { default as RootID, RootFakeUserID } from '../ID/RootID.js'
|
||||
import ID from '../ID/ID.mjs'
|
||||
import { default as RootID, RootFakeUserID } from '../ID/RootID.mjs'
|
||||
|
||||
/**
|
||||
* A BinaryDecoder handles the decoding of an ArrayBuffer.
|
||||
@@ -25,6 +25,10 @@ export default class BinaryDecoder {
|
||||
this.pos = 0
|
||||
}
|
||||
|
||||
hasContent () {
|
||||
return this.pos !== this.uint8arr.length
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone this decoder instance.
|
||||
* Optionally set a new position parameter.
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RootFakeUserID } from '../ID/RootID.js'
|
||||
import { RootFakeUserID } from '../ID/RootID.mjs'
|
||||
|
||||
const bits7 = 0b1111111
|
||||
const bits8 = 0b11111111
|
||||
@@ -127,6 +127,15 @@ export default class BinaryEncoder {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Write the content of another binary encoder.
|
||||
*
|
||||
* @param encoder The BinaryEncoder to be written.
|
||||
*/
|
||||
writeBinaryEncoder (encoder) {
|
||||
this.data = this.data.concat(encoder.data)
|
||||
}
|
||||
|
||||
/**
|
||||
* Write an ID at the current position.
|
||||
*
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getStructReference } from '../structReferences.js'
|
||||
import { getStructReference } from '../structReferences.mjs'
|
||||
|
||||
export const RootFakeUserID = 0xFFFFFF
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import ID from './ID/ID.js'
|
||||
import isParentOf from './isParentOf.js'
|
||||
import ID from './ID/ID.mjs'
|
||||
import isParentOf from './isParentOf.mjs'
|
||||
|
||||
class ReverseOperation {
|
||||
constructor (y, transaction) {
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
import ID from '../Util/ID/ID.js'
|
||||
import ItemJSON from '../Struct/ItemJSON.js'
|
||||
import ItemString from '../Struct/ItemString.js'
|
||||
import ID from '../Util/ID/ID.mjs'
|
||||
import ItemJSON from '../Struct/ItemJSON.mjs'
|
||||
import ItemString from '../Struct/ItemString.mjs'
|
||||
|
||||
/**
|
||||
* Try to merge all items in os with their successors.
|
||||
@@ -1,6 +1,6 @@
|
||||
import ID from './ID/ID.js'
|
||||
import RootID from './ID/RootID.js'
|
||||
import GC from '../Struct/GC.js'
|
||||
import ID from './ID/ID.mjs'
|
||||
import RootID from './ID/RootID.mjs'
|
||||
import GC from '../Struct/GC.mjs'
|
||||
|
||||
// TODO: Implement function to describe ranges
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import YArray from '../Types/YArray/YArray.js'
|
||||
import YMap from '../Types/YMap/YMap.js'
|
||||
import YText from '../Types/YText/YText.js'
|
||||
import YXmlText from '../Types/YXml/YXmlText.js'
|
||||
import YXmlHook from '../Types/YXml/YXmlHook.js'
|
||||
import YXmlFragment from '../Types/YXml/YXmlFragment.js'
|
||||
import YXmlElement from '../Types/YXml/YXmlElement.js'
|
||||
import Delete from '../Struct/Delete.mjs'
|
||||
import ItemJSON from '../Struct/ItemJSON.mjs'
|
||||
import ItemString from '../Struct/ItemString.mjs'
|
||||
import ItemFormat from '../Struct/ItemFormat.mjs'
|
||||
import ItemEmbed from '../Struct/ItemEmbed.mjs'
|
||||
import GC from '../Struct/GC.mjs'
|
||||
|
||||
import Delete from '../Struct/Delete.js'
|
||||
import ItemJSON from '../Struct/ItemJSON.js'
|
||||
import ItemString from '../Struct/ItemString.js'
|
||||
import ItemFormat from '../Struct/ItemFormat.js'
|
||||
import ItemEmbed from '../Struct/ItemEmbed.js'
|
||||
import GC from '../Struct/GC.js'
|
||||
import YArray from '../Types/YArray/YArray.mjs'
|
||||
import YMap from '../Types/YMap/YMap.mjs'
|
||||
import YText from '../Types/YText/YText.mjs'
|
||||
import YXmlText from '../Types/YXml/YXmlText.mjs'
|
||||
import YXmlHook from '../Types/YXml/YXmlHook.mjs'
|
||||
import YXmlFragment from '../Types/YXml/YXmlFragment.mjs'
|
||||
import YXmlElement from '../Types/YXml/YXmlElement.mjs'
|
||||
|
||||
const structs = new Map()
|
||||
const references = new Map()
|
||||
Reference in New Issue
Block a user