- edited description
continious listener
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)
-
reporter -
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
-
reporter works.
-
reporter - changed status to resolved
-
reporter - changed status to closed
-
repo owner Nice. Thanks for letting me know and closing the issue.
- Log in to comment