move binprotocol to submodule (webapp)

This commit is contained in:
Elijah R 2024-06-25 21:27:07 -04:00
parent d1203a5b9b
commit a82906d9c5
6 changed files with 6 additions and 25 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "collab-vm-1.2-binary-protocol"]
path = collab-vm-1.2-binary-protocol
url = https://github.com/computernewb/collab-vm-1.2-binary-protocol

@ -0,0 +1 @@
Subproject commit cfe9acc60b87ab26cf8612398c734c8caad426b8

View file

@ -10,7 +10,8 @@ import VoteStatus from './VoteStatus.js';
import MuteState from './MuteState.js';
import { StringLike } from '../StringLike.js';
import * as msgpack from 'msgpackr';
import { CollabVMProtocolMessage, CollabVMProtocolMessageType } from './binaryprotocol/CollabVMProtocolMessage.js';
// TODO: Properly workspaceify this
import { CollabVMProtocolMessage, CollabVMProtocolMessageType } from '../../../collab-vm-1.2-binary-protocol/src/index.js';
const w = window as any;
export interface CollabVMClientEvents {

View file

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

View file

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

View file

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