D394 socket.io

Uses buffer length instead of a running data length.
Not do so guarantees we will reach max buffer size and receive a disconnect