diff --git a/src/main/java/com/corundumstudio/socketio/parser/Encoder.java b/src/main/java/com/corundumstudio/socketio/parser/Encoder.java index 819c948..3636d69 100644 --- a/src/main/java/com/corundumstudio/socketio/parser/Encoder.java +++ b/src/main/java/com/corundumstudio/socketio/parser/Encoder.java @@ -246,7 +246,7 @@ public class Encoder { } } - public int encodePacketWithLength(Packet packet, ByteBuf buffer) throws IOException { + private int encodePacketWithLength(Packet packet, ByteBuf buffer) throws IOException { int start = buffer.writerIndex(); encodePacket(packet, buffer); return charsScanner.getLength(buffer, start);