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

SignalR support #3936

Open
anothercoding opened this issue Sep 7, 2024 · 1 comment
Open

SignalR support #3936

anothercoding opened this issue Sep 7, 2024 · 1 comment
Labels

Comments

@anothercoding
Copy link

anothercoding commented Sep 7, 2024

Feature Description

Apparently there is no support for SignalR

What I find is for WebSocket: https://stackoverflow.com/questions/72997533/k6-trigger-asp-net-core-server-function
Although the webSocket connection succeeds the signalR OnConnectedAsync or the hub methods are not used.

Suggested Solution (optional)

Already existing or connected issues / PRs (optional)

Websockets support already exists since 2017 via "Implement support for Websockets"
#178

@mstoykov
Copy link
Contributor

mstoykov commented Sep 9, 2024

I am not familiar with SignalR in particular and seems to one of many libraries doing the similar things - including socketio.

As with socketio the core team likely won't add this to the k6 core given it isn't a standard.

And in similar to socketio this likely can and should be buiilt on top of the primitives in k6. The link you provided as well as this blog seems to suggest that this is possible.

signalR OnConnectedAsync or the hub methods are not used.

I don't know what does are, but again I would expect that they will be implementable on the currently provided.

I did try to make https://www.npmjs.com/package/@microsoft/signalr as provided from https://cdnjs.com/libraries/microsoft-signalr to work with k6, but they seem to access quite a lot of node modules to do stuff that ends up being a big problem. So I don't know how possible it will be to edit it to make k6 run with it.

@mstoykov mstoykov removed the triage label Sep 9, 2024
@mstoykov mstoykov removed their assignment Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants