This commit is contained in:
Elijah R 2024-06-25 20:42:15 -04:00
commit 9f4c652164
9 changed files with 74 additions and 0 deletions

10
.editorconfig Normal file
View file

@ -0,0 +1,10 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2

4
.gitattributes vendored Normal file
View file

@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated

13
.gitignore vendored Normal file
View file

@ -0,0 +1,13 @@
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Swap the comments on the following lines if you wish to use zero-installs
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
# Documentation here: https://yarnpkg.com/features/caching#zero-installs
#!.yarn/cache
.pnp.*

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# collab-vm-1.2-binary-protocol
Common schema for the CollabVM 1.2 Binary Protocol

8
package.json Normal file
View file

@ -0,0 +1,8 @@
{
"name": "collab-vm-1.2-binary-protocol",
"author": "Computernewb Development Team",
"description": "Common schema for the CollabVM 1.2 Binary Protocol",
"license": "MIT",
"type": "module",
"packageManager": "yarn@4.2.2"
}

View file

@ -0,0 +1,8 @@
export default class CollabVMCapabilities {
// Support for JPEG screen rects in binary msgpack format
bin: boolean;
constructor() {
this.bin = false;
}
}

View file

@ -0,0 +1,11 @@
import CollabVMRectMessage from "./CollabVMRectMessage.js";
export interface CollabVMProtocolMessage {
type: CollabVMProtocolMessageType;
rect?: CollabVMRectMessage | undefined;
}
export enum CollabVMProtocolMessageType {
// JPEG Dirty Rectangle
rect = 0,
}

View file

@ -0,0 +1,5 @@
export default interface CollabVMRectMessage {
x: number;
y: number;
data: Uint8Array;
}

12
yarn.lock Normal file
View file

@ -0,0 +1,12 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 8
cacheKey: 10c0
"collab-vm-1.2-binary-protocol@workspace:.":
version: 0.0.0-use.local
resolution: "collab-vm-1.2-binary-protocol@workspace:."
languageName: unknown
linkType: soft