fixed #32
now node waits for socket will receive all message data