walterwanderley / xk6-stomp

A STOMP protocol client library for k6
Apache License 2.0
5 stars 8 forks source link

SockJS messages #5

Closed wasndak closed 1 year ago

wasndak commented 1 year ago

Hi

I have installed your plugin, did connect to the server but got read error for first message I've got. Issue here is that server is sending messages in sockJS. I'd like to ask if there is plan to implement sockJS if server uses this kind of messages.

Thank you.

walterwanderley commented 1 year ago

Hi

I have installed your plugin, did connect to the server but got read error for first message I've got. Issue here is that server is sending messages in sockJS. I'd like to ask if there is plan to implement sockJS if server uses this kind of messages.

Thank you.

Hi @wasndak !

I've never tried sockJS on the server. Is It possible? Have you look the websocket example? https://github.com/walterwanderley/xk6-stomp/blob/main/_examples/websocket.js

wasndak commented 1 year ago

Hi I have installed your plugin, did connect to the server but got read error for first message I've got. Issue here is that server is sending messages in sockJS. I'd like to ask if there is plan to implement sockJS if server uses this kind of messages. Thank you.

Hi @wasndak !

I've never tried sockJS on the server. Is It possible? Have you look the websocket example? https://github.com/walterwanderley/xk6-stomp/blob/main/_examples/websocket.js

Hi Walter, thank you for reply. I've worked on it for few days, without success. Implement sockJS should be possible, but as far as I know, its old solution of WS, and now its not used so much. I use another tool for it, and this was just a try. Log fyi : image