add most of the client connection protocol

This commit is contained in:
CoolElectronics 2023-08-11 19:07:22 -04:00
parent ea17f5d71c
commit 9ef8cc4cea
No known key found for this signature in database
GPG key ID: F63593D168636C50
6 changed files with 769 additions and 123 deletions

10
client/Transport.ts Normal file
View file

@ -0,0 +1,10 @@
export default abstract class Transport {
public ondata: (data: ArrayBuffer) => void = () => { }
constructor(
public onopen: () => void,
public onclose: () => void
) { }
abstract send(data: ArrayBuffer): void;
abstract send(data: ArrayBuffer): void;
}