chore: ping and bundle

This commit is contained in:
cha0s 2020-05-29 05:59:29 -05:00
parent 8da32977dc
commit a0528a8cb5
3 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import {Packet} from './packet'; import {Packet} from './packet';
import {idFromPacket, packetFromId} from './registry'; import {idFromPacket, packetFromId} from './registry';
export class BundlePacket extends Packet { export default class BundlePacket extends Packet {
static pack(packet) { static pack(packet) {
const packets = packet.data[1]; const packets = packet.data[1];

View File

@ -1,4 +1,4 @@
export {BundlePacket} from './bundle.packet'; export {default as BundlePacket} from './bundle.packet';
export {Packet} from './packet'; export {Packet} from './packet';
export { export {

View File

@ -0,0 +1,16 @@
import {Packet} from './packet';
export default class PingPacket extends Packet {
constructor() {
super(false);
}
static get schema() {
return {
...super.schema,
data: 'bool',
};
}
}