Unplanned
Last Updated: 07 Apr 2025 06:18 by ADMIN
Eiji
Created on: 03 Apr 2025 06:32
Type: Bug Report
0
WebSocket messages may appear as part of the WebSocket opening handshake.

I am using the following version

Progress Telerik Fiddler Classic v5.0.20253.3311 for .NET 4.6.2

After opening a WebSocket, the communication is captured in which the server returns the messages "WebSocket!Message1!" and "WebSocket!Message2!".

With the first WebSocket, these messages are displayed in the "WebSocket" tab as expected.

However, when the exact same interaction is captured again,
these messages are not displayed in the "WebSocket" tab as they are with the second WebSocket.
Instead, they are displayed as the response body in the "Raw" tab of "Inspectors".

Whether the messages are displayed in the "WebSocket" tab or the "Raw" tab of "Inspectors" is random, and there is no visible pattern.

There seems to be a problem with the process of determining the boundary between the WebSocket opening handshake and the WebSocket message exchange.

 

 

 

Attached Files:
1 comment
Eiji
Posted on: 07 Apr 2025 02:01

The following environments have been tested.

The WebSocket server/client are running on the same host.

  • Windows 11 Pro
  • wscat 6.0.1
  • Python 3.9.13
  • websocket-server 0.6.4

The procedure for testing is as follows.

1. Install websocket-server with the following command:
    pip install websocket-server

2. Change XXX.XXX.XXX.XXX in the WSSample.py file to the IP address of the server environment.(WSSample.py is included in the attached file WSSample.zip.)

3. Start the WebSocket server:
    python WSSample.py

4. Start Fiddler.

5. Connect to the WebSocket server with the following command.
    Replace XXX.XXX.XXX.XXX with the IP address of your environment.

    wscat --proxy http://localhost:8888 -c ws://XXX.XXX.XXX.XXX:9999

6. When the following message is displayed on the console from the server, press Ctrl+C to terminate the WebSocket client.

< WebSocket!Message1!
< WebSocket!Message2!

7. Repeat steps 5 and 6 several times.

 
Attached Files: