minor API update

* move constants.STRING_MAX_LENGTH -> protocol.STRING_MAX_LENGTH
 * expose protocol.version
 * expose protocol.minecraftVersion
 * expose protocol.sessionVerson
 * expose protocol.parsePacket
 * expose protocol.createPacketBuffer
This commit is contained in:
Andrew Kelley 2013-01-05 05:17:27 -05:00
parent 1fb0577fd9
commit 5f769caebc
2 changed files with 2 additions and 4 deletions

View file

@ -15,7 +15,7 @@ module.exports = {
Client: Client,
Server: Server,
ping: require('./lib/ping'),
constants: protocol.constants,
protocol: protocol,
};
function createServer(options) {

View file

@ -8,9 +8,7 @@ module.exports = {
sessionVersion: 13,
parsePacket: parsePacket,
createPacketBuffer: createPacketBuffer,
constants: {
STRING_MAX_LENGTH: STRING_MAX_LENGTH,
},
STRING_MAX_LENGTH: STRING_MAX_LENGTH,
};
var packets = {