SSocketBrume
Product

Product features · WebSocket payload unmasking

01

Inspect unmask_payload.py against binary payloads; acceptance requires exact byte recovery after applying the same mask twice.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

WebSocket payload unmasking

● ● ●SocketBrume●
A concrete starting point · WebSocket payload unmasking ×
def unmask_payload(data, mask):
    if type(data) is not bytes or len(data) > 1048576:
        raise ValueError("mask.payload")
    if type(mask) is not bytes or len(mask) != 4:
        raise ValueError("mask.key")
    return bytes(value ^ mask[index % 4]
                 for index, value in enumerate(data))
✳WebSocket payload unmasking
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗