This namespace contains debugging utilities and watch functions.
- Source:
Methods
-
<inner> dh(framedData, currentFrameIndex)
-
Get a string that contains the header of the specified frame. The header is the part of a frame that precedes the payload that the frame is carrying.
Parameters:
Name Type Description framedData
uInt8Array The array that contains the frame. The array may contain several frames. currentFrameIndex
integer The index of the frame within the array that the framedData
parameter specifies. The index of the first frame is zero.- Source:
Returns:
A string that contains the frame header, displayed in hexadecimal. -
<inner> dm(framedData, currentFrameIndex)
-
Get a string that contains the 4-element mask of the specified frame.
Parameters:
Name Type Description framedData
uInt8Array The array that contains the frame. The array may contain several frames. currentFrameIndex
integer The index of the frame within the array that the framedData
parameter specifies. The index of the first frame is zero.- Source:
Returns:
A string that contains the 4-element frame mask, displayed in hexadecimal. -
<inner> dp(framedData, currentFrameIndex)
-
Get a string that contains the decrypted payload of the specified frame.
This function might not be suitable for non-text data.Parameters:
Name Type Description framedData
uInt8Array The array that contains the frame. The array may contain several frames. currentFrameIndex
integer The index of the frame within the array that the framedData
parameter specifies. The index of the first frame is zero.- Source:
Returns:
A string that contains the decrypted payload, displayed in hexadecimal. -
<inner> oc(framedData, currentFrameIndex)
-
Get a readable operation code from the specified frame.
Parameters:
Name Type Description framedData
uInt8Array The array that contains the frame. The array may contain several frames. currentFrameIndex
integer The index of the frame within the array that the framedData
parameter specifies. The index of the first frame is zero.- Source:
Returns:
The readable operation code, as defined by the WebSocket specification.0x0 "Payload continues" 0x1 "UTF8 data" 0x2 "Binary data" 0x8 "Connection terminated" 0x9 "Ping" 0xA "Pong" otherwise "Unknown opcode"