move binprotocol to submodule (webapp)
This commit is contained in:
parent
d1203a5b9b
commit
a82906d9c5
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
|
||||||
1
collab-vm-1.2-binary-protocol
Submodule
1
collab-vm-1.2-binary-protocol
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit cfe9acc60b87ab26cf8612398c734c8caad426b8
|
||||||
|
|
@ -10,7 +10,8 @@ import VoteStatus from './VoteStatus.js';
|
||||||
import MuteState from './MuteState.js';
|
import MuteState from './MuteState.js';
|
||||||
import { StringLike } from '../StringLike.js';
|
import { StringLike } from '../StringLike.js';
|
||||||
import * as msgpack from 'msgpackr';
|
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;
|
const w = window as any;
|
||||||
|
|
||||||
export interface CollabVMClientEvents {
|
export interface CollabVMClientEvents {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
export default class CollabVMCapabilities {
|
|
||||||
// Support for JPEG screen rects in binary msgpack format
|
|
||||||
bin: boolean;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
this.bin = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -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,
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
export default interface CollabVMRectMessage {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
data: Uint8Array;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user