How to handle Event Stream responses from Server

Hi,
We are trying to capture the event stream response in the gatling which comes under Signal R Stream. Even though we create WS request we are unable to capture the response using Check

below are the headers of the request
"Accept: text/event-stream
User-Agent: Microsoft.AspNetCore.Http.Connections.Client/3.1.5
userId: xxxx
X-Requested-With: XMLHttpRequest "

The response under these are in messages

Also we are seeing continous streaming calls under request.

text/event-stream is not WebSocket, it’s Server Sent Events.

Hi slandelle,
I Have created SSE connection in the script and the session is only open for 10 - 20 seconds even though the wait time is 300 Seconds. we are getting below error
data: {“error”:“Handshake was canceled.”}%1E

The application that we are testing is for Thick Client application.

.exec(
sse(“xxxx”)
.connect(“/signalr/collaborator?id=${streamingID_1}”)
.headers(headers_168)
.await(300.seconds)(
sse.checkMessage(“Type:6”).matching(substring(“successfully”))
)
)

Hi,

There’s no way to tell without you providing a reproducer as required when posting here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.