Reported from Markus Sieber via personal-kdbplus@googlegroups.com
you assume that a whole message comes in one chunk in the data event "this.socket.on("data", function(buffer) {."
unfortunately this is not always correct. Tcp can split the data and so the data callback might be triggered mutliple times for one k ipc message. You have to buffer the data and check the length.
Reported from Markus Sieber via personal-kdbplus@googlegroups.com