0

Example :

42/,["current_event",{"current_event":"onboarding","eligible":true,"isOnBoarded":true,"event":"5f4dba217f63c00bd40bd636","contestantor":"5f4dba147f63c00bd40bd635","lastContestantor":false}]

What are these starting numbers (42/,43/ etc)? and how to write proper request body in Websocket request-response sampler?

WarunaDev
  • 23
  • 4

1 Answers1

0

You're not the only one who is confused by these magical numbers

The 4 part comes from the engine.io-protocol (abstract transport layer) which means message and the 2 part comes from the socket.io-protocol (specific transport layer) which is the message type and means event, internally referenced as MESSAGE_EVENT.

So you can just record your scenario and leave these 42 and 43 and variablize/correlate the payload in the sampler's body.

More information:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133