According to EngineIO Websocket Spec, each packet is sent in its seperate websocket frame, and in case of polling it is encoded in base64.
But here packet.rs iresepective of what the mode is, the code is splitting the packet by delimeter. This causes incomplete or invalid packets in case of binary message in websocket mode.