Closed pkyeck closed 10 years ago
btw: this is only the case while using polling
. once the client switches to websocket
everything looks good.
ok, found it.
/**
* Encodes multiple messages (payload) as binary.
*
* <1 = binary, 0 = string><number from 0-9><number from 0-9>[...]<number
* 255><data>
*
* Example:
* 1 3 255 1 2 3, if the binary contents are interpreted as 8 bit integers
*
* @param {Array} packets
* @return {Buffer} encoded payload
* @api private
*/
exports.encodePayloadAsBinary = function (packets, callback) {
// ...
}
should be mentioned here I think: https://github.com/LearnBoost/engine.io-protocol/blob/master/README.md
instead of the [...]
under "payload".
aargh, it was always there but wasn't displayed correctly :grimacing:
handshake returns this:
event looks like this:
where do they come from and why are they there? (payload?) do I have to split the response by
0xFF
to get the packets?thanks