Bug: HTTP Request and websocket response sequence issue
HTTP Request and websocket response sequence issue
Sometimes the response from the server in websocket channel comes before the http request with the eventId data is completed
How to reproduce (usually it happens for me in 1 of 10-20 requests):
- Listen to websocket channel
- Http channel: Send request to http://localhost:8081/api/v1/schemas. Result: Waiting for response. Request in progress
- WebSocket: Receive Schemas data with event id. Result: at that stage I don't know for what request this data as soon as HTTP request which should return eventId stil in progress
- Http channel: Request is finished and returned eventId
Proposal
Expected result:
- Do http request. Receive eventId
- Listen for websocket messages.
- Receive message from websocket and compare eventId in message with eventId received from http request