I’m stuck on Stage #wa6
I’m trying to understand how the parsing of Correlation ID is working. I referred to the code-examples and found this code : data.subarray(4, 12)
when I log the data from parameter I get following data
data: 'GET /socket.io/?EIO=4&transport=websocket HTTP/1.1\r\n' +
'request_api_key: 1232\r\n' +
'request_api_version: 1234\r\n' +
'correlation_id: 2147483646\r\n' +
'client_id: dummy_me\r\n' +
'tagged_fields: TAGGED_FIELDS\r\n' +
'Sec-WebSocket-Version: 13\r\n' +
'Sec-WebSocket-Key: y3k/oke3fhomiTMMM+rucQ==\r\n' +
'Connection: Upgrade\r\n' +
'Upgrade: websocket\r\n' +
'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
'Host: 127.0.0.1:9092\r\n' +
'\r\n',
So If I do a subarray on this the expected output should be (and I console logged this), would be “/socket
”.
So how are we getting the test passed?