Parser for the engine.io protocol, used by client and server