mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 14:20:01 -04:00
add most of the client connection protocol
This commit is contained in:
parent
ea17f5d71c
commit
9ef8cc4cea
6 changed files with 769 additions and 123 deletions
10
client/Transport.ts
Normal file
10
client/Transport.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue