mirror of
https://github.com/computernewb/collab-vm-1.2-binary-protocol.git
synced 2025-01-22 10:52:06 -05:00
init
This commit is contained in:
commit
9f4c652164
9 changed files with 74 additions and 0 deletions
10
.editorconfig
Normal file
10
.editorconfig
Normal 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
4
.gitattributes
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
/.yarn/** linguist-vendored
|
||||
/.yarn/releases/* binary
|
||||
/.yarn/plugins/**/* binary
|
||||
/.pnp.* binary linguist-generated
|
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal 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
3
README.md
Normal 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
8
package.json
Normal 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"
|
||||
}
|
8
src/CollabVMCapabilities.ts
Normal file
8
src/CollabVMCapabilities.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export default class CollabVMCapabilities {
|
||||
// Support for JPEG screen rects in binary msgpack format
|
||||
bin: boolean;
|
||||
|
||||
constructor() {
|
||||
this.bin = false;
|
||||
}
|
||||
}
|
11
src/CollabVMProtocolMessage.ts
Normal file
11
src/CollabVMProtocolMessage.ts
Normal 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,
|
||||
}
|
5
src/CollabVMRectMessage.ts
Normal file
5
src/CollabVMRectMessage.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
export default interface CollabVMRectMessage {
|
||||
x: number;
|
||||
y: number;
|
||||
data: Uint8Array;
|
||||
}
|
12
yarn.lock
Normal file
12
yarn.lock
Normal 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
|
Loading…
Reference in a new issue