continious listener

Issue #118 closed
sudhir baru created an issue

Hi ,

Thanks for the plugin. Can we have a sampler which continuously listen to the incoming messages. I tried achieving this with read sample in a forever loop. But this seems to miss the incoming messages from the server.

Comments (6)

  1. Peter Doornbosch repo owner

    Hi,

    A loop with a read sampler should do the trick. If you check the “use existing connection” option, the loop will read from the same connection. Essentially, the websocket connection is TCP connection, so messages are delivered in order and messages which have not yet been read are buffered. That means: the sampler cannot miss messages, it will read them in the same order the server has sent them.

    If you are confused about what communication is going between sampler and server, it’s always helpful to capture the traffic with a tool like WireShark.

    Regards,

    Peter

  2. Log in to comment