I need to use Locust to send custom bytes on a socket to load test my apps.
I don't quite see how do that. I can only see it being used as a HTTP traffic injector which is not suitable for my purposes.
I need something more along the lines of this pseudocode. That is, I need to inject my custom bytes into the socket.
class User(I don;t know what suppose to go here. I'm not using HTTP):
wait_time = between(1, 3)
host = "https://docs.locust.io"
@task
def my_task(self):
self.getSocket.write(bytes)
Can anyone give me a hint on how to achieve this?