question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] How to monitor messages arriving on socket.io channel?

See original GitHub issue

I understand how flows can be written to emit socket.io messages and wait (for some indeterminate amount of time) for a response message, but how would we write flows that can receive arbitrary (real-time) messages sent from other virtual users?

I can envision some type of monitor function that receives messages for a given flow and can verify that they are correct. Perhaps this monitoring can occur during a “think” phase.

I don’t see anything in the documentation that addresses this type of real-time message validation. Is that consistent with the vision for Artillery?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
ruchi-shakyacommented, May 19, 2020

@hassy hi! I am looking if you have tried to implement Listen/Receive Events feature on Artillery. This feature is something I need in my load testing where I am trying to Emit and Listen on like 50+ users.

Any work around from your side would be really appreciated. Thanks!!

6reactions
alvatechcommented, May 30, 2019

@hassy @gboysko Is anyone working on this feature? I need this feature but I’m new to the Artillery code base. Any pointer on how this can be implemented?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keep track of the messages sent on a socket, socket.io
1 Answer 1 ... Just create a table for the messages and make sure one of the columns is the chatroom name or...
Read more >
Emit cheatsheet
Emit cheatsheet | Socket.IO. This is documentation for Socket.IO 3. x, which is no longer actively maintained. For up-to-date documentation, ...
Read more >
Everything you need to know about Socket.IO
Inside the function we are using io.emit() to send a message to all the connected clients. This code will notify when a user...
Read more >
Realtime Chat With Users & Rooms - Socket.io, Node & Express
In this project we will build a chat app using Node, express & websockets in under 60 minutesCode:https://github.com/bradtraversy/chatcord  ...
Read more >
WebSocket: message event - Web APIs | MDN
The message event is fired when data is received through a WebSocket.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found