Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SocketIOUser send method supports specific subscribe request #2616

Closed
2 tasks done
Kareppa321 opened this issue Feb 28, 2024 · 1 comment
Closed
2 tasks done

SocketIOUser send method supports specific subscribe request #2616

Kareppa321 opened this issue Feb 28, 2024 · 1 comment

Comments

@Kareppa321
Copy link

Kareppa321 commented Feb 28, 2024

Prerequisites

Description

I am using the SocketIOUser class from locust_plugins
from locust_plugins.users.socketio import SocketIOUser

I defined the send function which calls self.send(query). But when checked the socketio.py file from the packages, the function searches for a regex pattern as follows:
# hoping this is a subscribe type message, try to detect name
m = re.search(r'(\d*)["([a-z]*)"', body)

Is there any way to use the socketio to test the websockets that use custom send message methods?

@cyberw
Copy link
Collaborator

cyberw commented Feb 28, 2024

Not related to locust core.

@cyberw cyberw closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants