WebSocket Request Interface
The WebSocket request interface consists of several key components:
Request Interface
Connection Status
- Disconnected: Initial state, ready to connect
- Connecting: Establishing connection to server
- Connected: Successfully connected and ready to send messages
- Disconnected: Connection lost or manually closed
Message Composition
- Message Type: Choose between Text, JSON, XML
- Message Editor: Compose your message with syntax highlighting
- Send Button: Send the composed message
Message History
- Sent Messages: All messages you’ve sent (marked with →)
- Received Messages: All messages received from server (marked with ←)
- Timestamps: When each message was sent/received
- Message Sorting: Toggle between newest/oldest first
Connection Management
Establishing Connection
- Click the “Connect” button to establish the WebSocket connection
- Monitor connection status in the status indicator
- View connection logs for detailed connection information
Sending Messages
- Compose your message in the message editor
- Select message type (Text, JSON, XML)
- Click “Send” to transmit the message
- View sent message in the message history
Receiving Messages
- Monitor the message history for incoming messages
- View message details including timestamp and content
- Use test scripts to validate received messages
Closing Connection
- Click “Disconnect” to close the WebSocket connection
- Connection status will update to “Disconnected”
- Message history is preserved for review