avocado-old/packages/packet/index.js

24 lines
318 B
JavaScript
Raw Normal View History

2019-04-11 15:26:13 -05:00
export class Packet {
constructor(data) {
this.data = data;
}
static get schema() {
return {
_id: 'uint8',
};
}
}
export {
allPackets,
idFromPacket,
packetFromId,
registerPacket,
} from './registry';
import * as SocketIoParser from './socket.io-parser';
export {SocketIoParser};