diff --git a/index.js b/index.js index bdf3153..d84e8a7 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ module.exports = { Client: Client, Server: Server, ping: require('./lib/ping'), - constants: protocol.constants, + protocol: protocol, }; function createServer(options) { diff --git a/lib/protocol.js b/lib/protocol.js index ea35ea4..6e2d12a 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -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 = {