chore: ping and bundle
This commit is contained in:
parent
8da32977dc
commit
a0528a8cb5
|
@ -1,7 +1,7 @@
|
|||
import {Packet} from './packet';
|
||||
import {idFromPacket, packetFromId} from './registry';
|
||||
|
||||
export class BundlePacket extends Packet {
|
||||
export default class BundlePacket extends Packet {
|
||||
|
||||
static pack(packet) {
|
||||
const packets = packet.data[1];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export {BundlePacket} from './bundle.packet';
|
||||
export {default as BundlePacket} from './bundle.packet';
|
||||
export {Packet} from './packet';
|
||||
|
||||
export {
|
||||
|
|
16
packages/net/packet/ping.packet.js
Normal file
16
packages/net/packet/ping.packet.js
Normal 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',
|
||||
};
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user